You are here

public function EasyRdf_Serialiser_GraphViz::renderImage in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php \EasyRdf_Serialiser_GraphViz::renderImage()

Internal function to render a graph into an image

@ignore

1 call to EasyRdf_Serialiser_GraphViz::renderImage()
EasyRdf_Serialiser_GraphViz::serialise in vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php
Serialise an EasyRdf_Graph into a GraphViz dot document.

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php, line 353

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);
}