Version 0.99.03
[nasm/avx512.git] / perllib / Graph / Undirected.pm
blob3993bb1ce48f35bd20afb2eca013457d439d2392
1 package Graph::Undirected;
3 use Graph;
4 use base 'Graph';
5 use strict;
7 =pod
9 =head1 NAME
11 Graph::Undirected - undirected graphs
13 =head1 SYNOPSIS
15 use Graph::Undirected;
16 my $g = Graph::Undirected->new;
18 # Or alternatively:
20 use Graph;
21 my $g = Graph->new(undirected => 1);
22 my $g = Graph->new(directed => 0);
24 =head1 DESCRIPTION
26 Graph::Undirected allows you to create undirected graphs.
28 For the available methods, see L<Graph>.
30 =head1 SEE ALSO
32 L<Graph>, L<Graph::Directed>
34 =head1 AUTHOR AND COPYRIGHT
36 Jarkko Hietaniemi F<jhi@iki.fi>
38 =head1 LICENSE
40 This module is licensed under the same terms as Perl itself.
42 =cut
44 sub new {
45 my $class = shift;
46 bless Graph->new(undirected => 1, @_), ref $class || $class;