Class DirectedGraph<T>
- java.lang.Object
-
- org.onebusaway.transit_data_federation.impl.DirectedGraph<T>
-
public class DirectedGraph<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description DirectedGraph()
DirectedGraph(DirectedGraph<T> graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEdge(T from, T to)
void
addNode(T node)
Set<org.onebusaway.collections.tuple.Pair<T>>
getEdges()
Set<T>
getInboundNodes(T node)
Set<T>
getNodes()
Set<T>
getOutboundNodes(T node)
List<T>
getTopologicalSort(Comparator<T> tieBreaker)
boolean
isConnected(T from, T to)
void
removeEdge(T from, T to)
-
-
-
Constructor Detail
-
DirectedGraph
public DirectedGraph()
-
DirectedGraph
public DirectedGraph(DirectedGraph<T> graph)
-
-
Method Detail
-
addNode
public void addNode(T node)
-
getTopologicalSort
public List<T> getTopologicalSort(Comparator<T> tieBreaker)
-
-