| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Graph::Undirected; |
|
2
|
|
|
|
|
|
|
|
|
3
|
36
|
|
|
36
|
|
1881250
|
use Graph; |
|
|
36
|
|
|
|
|
157
|
|
|
|
36
|
|
|
|
|
2357
|
|
|
4
|
36
|
|
|
36
|
|
269
|
use base 'Graph'; |
|
|
36
|
|
|
|
|
68
|
|
|
|
36
|
|
|
|
|
5085
|
|
|
5
|
36
|
|
|
36
|
|
225
|
use strict; |
|
|
36
|
|
|
|
|
65
|
|
|
|
36
|
|
|
|
|
1026
|
|
|
6
|
36
|
|
|
36
|
|
160
|
use warnings; |
|
|
36
|
|
|
|
|
77
|
|
|
|
36
|
|
|
|
|
5305
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=pod |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Graph::Undirected - undirected graphs |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
use Graph::Undirected; |
|
17
|
|
|
|
|
|
|
my $g = Graph::Undirected->new; |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# Or alternatively: |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
use Graph; |
|
22
|
|
|
|
|
|
|
my $g = Graph->new(undirected => 1); |
|
23
|
|
|
|
|
|
|
my $g = Graph->new(directed => 0); |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Graph::Undirected allows you to create undirected graphs. |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
For the available methods, see L. |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
L, L |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 AUTHOR AND COPYRIGHT |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Jarkko Hietaniemi F |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 LICENSE |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This module is licensed under the same terms as Perl itself. |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=cut |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub new { |
|
46
|
1448
|
|
|
1448
|
1
|
6261881
|
my $class = shift; |
|
47
|
1448
|
100
|
100
|
|
|
9315
|
$class->SUPER::new((ref $class && $class->directed) ? () : (undirected => 1), @_); |
|
48
|
|
|
|
|
|
|
} |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
1; |