public function createImageData(Graph $graph)
    {
        $file = $this->createImageFile($graph);
        $data = file_get_contents($file);
        unlink($file);

        return $data;
    }
public function createImageData(Graph $graph)
    {
        $file = $this->createImageFile($graph);
        $data = file_get_contents($file);
        unlink($file);

        return $data;
    }
public function createImageData ( Graph $ graph ) { $ file = $ this -> createImageFile ( $ graph ) ; $ data = file_get_contents ( $ file ) ; unlink ( $ file ) ; return $ data ; }
create image file data contents for this graph

@param Graph $graph graph to display
@return string
@uses GraphViz::createImageFile()
create image file data contents for this graph