NAME
Graph::Easy::Edge::Cell - A cell in an edge in Graph::Easy
SYNOPSIS
use Graph::Easy;my $ssl = Graph::Easy::Edge->new(label => 'encrypted connection',style => 'solid',color => 'red',);my $src = Graph::Easy::Node->new( 'source' );my $dst = Graph::Easy::Node->new( 'destination' );$graph = Graph::Easy->new();$graph->add_edge($src, $dst, $ssl);print $graph->as_ascii();
DESCRIPTION
A "Graph::Easy::Edge::Cell" represents an edge between two (or more) nodes in a simple graph.
Each edge has a direction (from source to destination, or back and forth), plus a style (line width and style), colors etc. It can also have a name, e.g. a text label associated with it.
There should be no need to use this package directly.
METHODS
error()
$last_error = $edge->error();$cvt->error($error); # set new messages$cvt->error(''); # clear error
Returns the last error message, or '' for no error.
as_ascii()
my $ascii = $path->as_ascii();
Returns the path-cell as a little ascii representation.
as_html()
my $html = $path->as_html($tag,$id);
eturns the path-cell as HTML code.
label()
my $label = $path->label();
Returns the name (also known as 'label') of the path-cell.
style()
my $style = $edge->style();
Returns the style of the edge.
EXPORT
None by default. Can export the following on request:
EDGE_START_EEDGE_START_WEDGE_START_NEDGE_START_SEDGE_END_EEDGE_END_WEDGE_END_NEDGE_END_SEDGE_SHORT_EEDGE_SHORT_WEDGE_SHORT_NEDGE_SHORT_SEDGE_SHORT_BD_EWEDGE_SHORT_BD_NSEDGE_SHORT_UN_EWEDGE_SHORT_UN_NSEDGE_HOREDGE_VEREDGE_CROSSEDGE_N_EEDGE_N_WEDGE_S_EEDGE_S_WEDGE_S_E_WEDGE_N_E_WEDGE_E_N_SEDGE_W_N_SEDGE_LOOP_NORTHEDGE_LOOP_SOUTHEDGE_LOOP_EASTEDGE_LOOP_WESTEDGE_N_W_SEDGE_S_W_NEDGE_E_S_WEDGE_W_S_EEDGE_TYPE_MASKEDGE_FLAG_MASKEDGE_ARROW_MASKEDGE_START_MASKEDGE_END_MASKEDGE_MISC_MASKARROW_RIGHTARROW_LEFTARROW_UPARROW_DOWN
SEE ALSO
Graph::Easy.
AUTHOR
Copyright (C) 2004 - 2007 by Tels <http://bloodgate.com>.
See the LICENSE file for more details.