public function EasyRdf_Serialiser_GraphViz::renderImage

Internal function to render a graph into an image

@ignore

1 call to EasyRdf_Serialiser_GraphViz::renderImage()

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php, line 354

Class

EasyRdf_Serialiser_GraphViz
Class to serialise an EasyRdf_Graph to GraphViz

Code

public function renderImage($graph, $format = 'png') {
  $dot = $this
    ->serialiseDot($graph);
  return EasyRdf_Utils::execCommandPipe($this->dotCommand, array(
    "-T{$format}",
  ), $dot);
}