Graph/Traversal/BFS.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 92.5% 25 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Graph/Matrix.pm ↑ Summary Graph/Traversal/DFS.pm »
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__
« Graph/Matrix.pm ↑ Summary Graph/Traversal/DFS.pm »