Graph::Undirected - undirected graphs


Graph documentation Contained in the Graph distribution.

Index


Code Index:

NAME

Top

Graph::Undirected - undirected graphs

SYNOPSIS

Top

    use Graph::Undirected;
    my $g = Graph::Undirected->new;

    # Or alternatively:

    use Graph;
    my $g = Graph->new(undirected => 1);
    my $g = Graph->new(directed => 0);

DESCRIPTION

Top

Graph::Undirected allows you to create undirected graphs.

For the available methods, see Graph.

SEE ALSO

Top

Graph, Graph::Directed

AUTHOR AND COPYRIGHT

Top

LICENSE

Top

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;