Class TopologicalSorter<V>

java.lang.Object
eu.bandm.tools.graph.TopologicalSorter<V>
All Implemented Interfaces:
Iterable<V>

public class TopologicalSorter<V> extends Object implements Iterable<V>
This class imposes an order on the nodes of a graph. The iterator() method of this class enumerates all nodes of a certain graph in a loosely specified order. Input graph and order specification are given at construction time.
  • Constructor Details

    • TopologicalSorter

      public TopologicalSorter(RootedGraphModel<V> model, TraversalOrder order, boolean weak)
      Create an object that imposes an order on the nodes of a graph.
  • Method Details