| 1 | package Graph::Traversal::BFS; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use Graph::Traversal; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use base 'Graph::Traversal'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 58 | ▶ | sub current { |
|
Subroutine
current: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 10 | 58 | my $self = shift; | |
| 11 | 58 | $self->{ order }->[ 0 ]; | |
| 12 | } | ||
| 13 | |||
| 14 | 33 | ▶ | sub see { |
|
Subroutine
see: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 15 | 33 | my $self = shift; | |
| 16 | 33 | shift @{ $self->{ order } }; | |
| 17 | } | ||
| 18 | |||
| 19 | 1 | *bfs = \&Graph::Traversal::postorder; | |
| 20 | |||
| 21 | 1 | 1; | |
| 22 | __END__ | ||