createVertex('Entity'); $a->setAttribute('graphviz.shape', 'none'); $a->setAttribute('graphviz.label', GraphViz::raw('<
\N
+ touch()
>')); $b = $graph->createVertex('Block'); $b->createEdgeTo($a); $b->setAttribute('graphviz.shape', 'none'); $b->setAttribute('graphviz.label', GraphViz::raw('<
\N
- size:int
+ touch()
>')); $graphviz = new GraphViz(); echo $graphviz->createScript($graph); $graphviz->display($graph);