line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Graph::SPTHeapElem; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
46
|
use strict; |
|
6
|
|
|
|
|
23
|
|
|
6
|
|
|
|
|
228
|
|
4
|
6
|
|
|
6
|
|
37
|
use warnings; |
|
6
|
|
|
|
|
8
|
|
|
6
|
|
|
|
|
1406
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
1017
|
|
|
1017
|
0
|
1563
|
my $class = shift; |
8
|
1017
|
|
|
|
|
4994
|
bless { u => $_[0], v => $_[1], w => $_[2] }, $class; |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub heap { |
12
|
2034
|
|
|
2034
|
0
|
22758
|
my $self = shift; |
13
|
2034
|
50
|
|
|
|
4915
|
@_ ? ($self->{heap} = shift) : $self->{heap}; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub cmp { |
17
|
|
|
|
|
|
|
($_[0]->{ w } || 0) <=> ($_[1]->{ w } || 0) || |
18
|
|
|
|
|
|
|
($_[0]->{ u } cmp $_[1]->{ u }) || |
19
|
6237
|
100
|
50
|
6237
|
0
|
209028
|
($_[0]->{ u } cmp $_[1]->{ v }); |
|
|
|
50
|
|
|
|
|
|
|
|
100
|
|
|
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub val { |
23
|
1017
|
|
|
1017
|
0
|
1492
|
@{ $_[0] }{ qw(u v w) }; |
|
1017
|
|
|
|
|
3218
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |