| Graph documentation | Contained in the Graph distribution. |
Graph::Undirected - undirected graphs
use Graph::Undirected;
my $g = Graph::Undirected->new;
# Or alternatively:
use Graph;
my $g = Graph->new(undirected => 1);
my $g = Graph->new(directed => 0);
Graph::Undirected allows you to create undirected graphs.
For the available methods, see Graph.
Jarkko Hietaniemi jhi@iki.fi
This module is licensed under the same terms as Perl itself.
| Graph documentation | Contained in the Graph distribution. |
package Graph::Undirected; use Graph; use base 'Graph'; use strict;
sub new { my $class = shift; bless Graph->new(undirected => 1, @_), ref $class || $class; } 1;