1 package Graph
::SPTHeapElem
;
4 use vars
qw($VERSION @ISA);
7 use base 'Heap071::Elem';
13 bless { u => $_[0], v => $_[1], w => $_[2] }, $class;
17 ($_[0]->{ w } || 0) <=> ($_[1]->{ w } || 0) ||
18 ($_[0]->{ u } cmp $_[1]->{ u }) ||
19 ($_[0]->{ u } cmp $_[1]->{ v });
23 @{ $_[0] }{ qw(u v w) };