Graph:...:Layout(3pm)
β¨ Graph:...:Layout(3pm) β¨
okay bestie, so this is a User Contributed Perl Documentation page, and it's all about the little engine that could for laying out your graphs π
πΈ NAME πΈ
Graph::Easy::Layout β it does the layout of the graph from Graph::Easy, that's the whole job, no cap π
π¦ SYNOPSIS π¦
like, here's the vibe in action:
use Graph::Easy;
my $graph = Graph::Easy->new();
my $bonn = Graph::Easy::Node->new(
name => 'Bonn',
);
my $berlin = Graph::Easy::Node->new(
name => 'Berlin',
);
$graph->add_edge ($bonn, $berlin);
$graph->layout();
print $graph->as_ascii( );
# prints:
# +------+ +--------+
# | Bonn | --> | Berlin |
# +------+ +--------+
look at that arrow go π she's so pretty
π DESCRIPTION π
Graph::Easy::Layout contains just the actual layout code for Graph::Easy. like, that's it. that's the girl. she doesn't do the parsing, she doesn't do the rendering, she does the laying out. main character energy but specifically for coordinates β¨
π METHODS π
Graph::Easy::Layout injects the following methods into the Graph::Easy namespace:
π layout()
$graph->layout();
layouts the actual graph. the real one. the graph itself. go off π
π _assign_ranks()
$graph->_assign_ranks();
used by layout() to assign each node a rank, so they can be sorted and grouped on those. ranking them up fr fr π
π§ _optimize_layout
used by layout() to optimize the layout as a last step. the final glow-up at the end of the makeover montage π
β EXPORT β
exports nothing. she gives nothing away, she's mysterious like that π
πΈ SEE ALSO πΈ
Graph::Easy.
π AUTHOR π
Copyright (C) 2004 - 2008 by Tels <http://bloodgate.com>
see the LICENSE file for information.
and that's the whole page bestie, slay π β¨
sign-off time: this was perl v5.36.0, dated 2022-11-20, and yes the footer says it again β Graph:...:Layout(3pm). iconic. 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