public void reverse ( Consumer < T > action ) { TopoSorter < T > sorter = new TopoSorter <> ( this ) ; sorter . reverse ( action ) ; }
Traverses this graph and performs the given action in reverse topological order