The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

METHODS

new

label

shape

Sets the shape of node. Possible values can be, among others:

  • 'none'

  • 'point'

  • 'rect'

  • 'square'

  • 'star'

  • etc …

dot_text

Returns the dot-text that represents the node on which it was called.

Called by GraphViz::Graph's write_dot().

port

$node->port() is needed to connect from or to ports with edges.

    my $nd_one   = $graph->node();
    my $nd_two   = $graph->node();

    $nd_two->label({html=>"<table>
      <tr><td port='port_f'>f</td><td>g</td></tr>
    </table>"});

    $graph->edge($nd_one, $nd_two->port('port_f')):