line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Graph::SPTHeapElem; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
38
|
use strict; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
208
|
|
4
|
6
|
|
|
6
|
|
27
|
use warnings; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
1184
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
1018
|
|
|
1018
|
0
|
1338
|
my $class = shift; |
8
|
1018
|
|
|
|
|
3978
|
bless { u => $_[0], v => $_[1], w => $_[2] }, $class; |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub heap { |
12
|
2036
|
|
|
2036
|
0
|
19277
|
my $self = shift; |
13
|
2036
|
50
|
|
|
|
4253
|
@_ ? ($self->{heap} = shift) : $self->{heap}; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub cmp { |
17
|
|
|
|
|
|
|
($_[0]->{ w } || 0) <=> ($_[1]->{ w } || 0) || |
18
|
|
|
|
|
|
|
($_[0]->{ u } cmp $_[1]->{ u }) || |
19
|
6149
|
100
|
50
|
6149
|
0
|
171971
|
($_[0]->{ u } cmp $_[1]->{ v }); |
|
|
|
50
|
|
|
|
|
|
|
|
100
|
|
|
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub val { |
23
|
1018
|
|
|
1018
|
0
|
1158
|
@{ $_[0] }{ qw(u v w) }; |
|
1018
|
|
|
|
|
2683
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |