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