NAME
Graph::Easy::Layout::Path - Path management for Manhattan-style grids
SYNOPSIS
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 |
# +------+ +--------+
DESCRIPTION
Graph::Easy::Layout::Scout
contains just the actual path-managing code for Graph::Easy, e.g. to create/destroy/maintain paths, node placement etc.
EXPORT
Exports nothing.
SEE ALSO
METHODS
This module injects the following methods into Graph::Easy:
_path_is_clear
$graph->_path_is_clear($path);
For all points (x,y pairs) in the path, check that the cell is still free. $path
points to a list x,y,type pairs as in [ [x,y,type], [x,y,type], ...]
.
AUTHOR
Copyright (C) 2004 - 2005 by Tels http://bloodgate.com.
See the LICENSE file for information.