Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently , if the BOTTOM_UP approach is adopted, it achieved by reversing the results of TOP_DOWN.
case BOTTOM_UP: // TODO jvs 4-Apr-2006: enhance TopologicalOrderIterator // to support reverse walk. final List<HepRelVertex> list = new ArrayList<>(); for (HepRelVertex vertex : TopologicalOrderIterator.of(graph)) { list.add(vertex); } Collections.reverse(list); return list.iterator();
In this PR, TopologicalOrderIterator will support BOTTOM_UP and TOP_DOWN mode both.
Attachments
Issue Links
- links to