Graph:...e::Cell(3pm)
π Graph::Easy::Edge::Cell β a whole manual page, bestie π
okay so you're looking at Graph::Easy::Edge::Cell, part of the Graph::Easy family (Perl, user-contributed docs, the whole vibe). It's a cell in an edge β yes, literally one lil square of an edge, the pixel-girlie of graph rendering. π
β¨ NAME β¨
Graph::Easy::Edge::Cell β a cell in an edge in Graph::Easy. that's it, that's the name, no cap.
π SYNOPSIS π
here's the whole flow, copy it exactly bestie:
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();
look at her go π building a whole graph and printing it as ascii like it's nothing. queen behavior.
π¦ DESCRIPTION π¦
a Graph::Easy::Edge::Cell represents an edge between two (or more) nodes in a simple graph. it's giving "one tiny cell, big responsibilities" β¨
every edge has a direction β from source to destination, or back and forth β plus a style (that's line width and style, the whole lewk), colors etc. it can also have a name, like a text label attached to it. iykyk.
π«Ά heads up bestie: there should be no need to use this package directly. like, it's the backstage crew. let Graph::Easy handle it, fr fr.
π 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. so if something went wrong you can go "bestie what happened" and she'll tell you. π
as_ascii()
my $ascii = $path->as_ascii();
returns the path-cell as a little ascii representation. tiny art, huge energy. π¨
as_html()
my $html = $path->as_html($tag,$id);
returns the path-cell as HTML code. glow-up complete. β¨
label()
my $label = $path->label();
returns the name (also known as 'label') of the path-cell. same thing, two names, we love a versatile icon. π
style()
my $style = $edge->style();
returns the style of the edge. outfit check! πΈ
π§ EXPORT π§
none by default, bestie. but she can export the following on request:
EDGE_START_E
EDGE_START_W
EDGE_START_N
EDGE_START_S
EDGE_END_E
EDGE_END_W
EDGE_END_N
EDGE_END_S
EDGE_SHORT_E
EDGE_SHORT_W
EDGE_SHORT_N
EDGE_SHORT_S
EDGE_SHORT_BD_EW
EDGE_SHORT_BD_NS
EDGE_SHORT_UN_EW
EDGE_SHORT_UN_NS
EDGE_HOR
EDGE_VER
EDGE_CROSS
EDGE_N_E
EDGE_N_W
EDGE_S_E
EDGE_S_W
EDGE_S_E_W
EDGE_N_E_W
EDGE_E_N_S
EDGE_W_N_S
EDGE_LOOP_NORTH
EDGE_LOOP_SOUTH
EDGE_LOOP_EAST
EDGE_LOOP_WEST
EDGE_N_W_S
EDGE_S_W_N
EDGE_E_S_W
EDGE_W_S_E
EDGE_TYPE_MASK
EDGE_FLAG_MASK
EDGE_ARROW_MASK
EDGE_START_MASK
EDGE_END_MASK
EDGE_MISC_MASK
ARROW_RIGHT
ARROW_LEFT
ARROW_UP
ARROW_DOWN
all of them. every single one. no skipping, that's the rule. π
π SEE ALSO π
Graph::Easy. that's the one. go read her, she's the main character. π
π AUTHOR π
Copyright (C) 2004 - 2007 by Tels <http://bloodgate.com>.
see the LICENSE file for more details. read it, it's short, i promise. π«Ά
and that's the whole page bestie β this one's from the Perl v5.36.0 docs, dated 2022-11-20, and it's Graph:...e::Cell(3pm) if you need to cite your sources in the group chat. periodt. π
β¨
π¦ where this page comes from
- debian bookworm: libgraph-easy-perl 0.76-3 Β· GPL-2.0-or-later
- debian trixie: libgraph-easy-perl 0.76-3 Β· GPL-2.0-or-later
- ubuntu noble: libgraph-easy-perl 0.76-3 Β· GPL-2.0-or-later
- ubuntu resolute: libgraph-easy-perl 0.76-3 Β· GPL-2.0-or-later
- ubuntu stonking: libgraph-easy-perl 0.76-3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms