my $g = Graph->new;
my $b = Graph::Traversal::BFS->new($g, %opt);
$b->bfs; # Do the traversal.
DESCRIPTIONWith this class one can traverse a Graph in breadth-first order.
The callback parameters %opt are explained in Graph::Traversal.
MethodsThe following methods are available:
- Traverse the graph in breadth-first order. Returns all vertices traversed in post-order.