line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package GraphViz::Graph::Edge; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
66
|
use warnings; |
|
8
|
|
|
|
|
27
|
|
|
8
|
|
|
|
|
314
|
|
4
|
8
|
|
|
8
|
|
59
|
use strict; |
|
8
|
|
|
|
|
23
|
|
|
8
|
|
|
|
|
395
|
|
5
|
|
|
|
|
|
|
|
6
|
8
|
|
|
8
|
|
56
|
use GraphViz::Graph; |
|
8
|
|
|
|
|
20
|
|
|
8
|
|
|
|
|
279
|
|
7
|
|
|
|
|
|
|
|
8
|
8
|
|
|
8
|
|
50
|
use Carp; |
|
8
|
|
|
|
|
21
|
|
|
8
|
|
|
|
|
2011
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
#_{ Methods |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 METHODS |
13
|
|
|
|
|
|
|
=cut |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { #_{ |
16
|
|
|
|
|
|
|
#_{ POD |
17
|
|
|
|
|
|
|
=head2 new |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=cut |
20
|
|
|
|
|
|
|
#_} |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
23
|
0
|
|
|
|
|
|
my $from = shift; |
24
|
0
|
|
|
|
|
|
my $to = shift; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# my $opts = shift; |
27
|
0
|
|
|
|
|
|
my $self = {}; |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
$self->{from} = GraphViz::Graph::node_or_port_to_string_($from); |
30
|
0
|
|
|
|
|
|
$self->{to } = GraphViz::Graph::node_or_port_to_string_($to ); |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
|
|
|
bless $self, $class; |
33
|
0
|
|
|
|
|
|
return $self; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
} #_} |
36
|
|
|
|
|
|
|
sub dot_text { |
37
|
|
|
|
|
|
|
#_{ POD |
38
|
|
|
|
|
|
|
=head2 dot_text |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Returns the dot-text that represents the edge on which it was called. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Called by L's C. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=cut |
45
|
|
|
|
|
|
|
#_} |
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
48
|
|
|
|
|
|
|
|
49
|
0
|
|
|
|
|
|
my $ret = "$self->{from} -> $self->{to};\n"; |
50
|
|
|
|
|
|
|
|
51
|
0
|
|
|
|
|
|
return $ret; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
#_} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
'tq84'; |