public function createImageHtml(Graph $graph)
    {
        if ($this->format === 'svg' || $this->format === 'svgz') {
            return '<object type="image/svg+xml" data="' . $this->createImageSrc($graph) . '"></object>';
        }

        return '<img src="' . $this->createImageSrc($graph) . '" />';
    }
public function createImageHtml(Graph $graph)
    {
        if ($this->format === 'svg' || $this->format === 'svgz') {
            return '<object type="image/svg+xml" data="' . $this->createImageSrc($graph) . '"></object>';
        }

        return '<img src="' . $this->createImageSrc($graph) . '" />';
    }
public function createImageHtml ( Graph $ graph ) { if ( $ this -> format === 'svg' || $ this -> format === 'svgz' ) { return '<object type="image/svg+xml" data="' . $ this -> createImageSrc ( $ graph ) . '"></object>' ; } return '<img src="' . $ this -> createImageSrc ( $ graph ) . '" />' ; }
create image html code for this graph

@param Graph $graph graph to display
@return string
@uses GraphViz::createImageSrc()
create image html code for this graph