Graph:...e::Cell(3pm)

πŸ“¦
version 0.76 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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. πŸ’…βœ¨