org.onebusaway.transit_data_federation.impl
Class DirectedGraph<T>
java.lang.Object
org.onebusaway.transit_data_federation.impl.DirectedGraph<T>
public class DirectedGraph<T>
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectedGraph
public DirectedGraph()
DirectedGraph
public DirectedGraph(DirectedGraph<T> graph)
getNodes
public Set<T> getNodes()
getEdges
public Set<org.onebusaway.collections.tuple.Pair<T>> getEdges()
getInboundNodes
public Set<T> getInboundNodes(T node)
getOutboundNodes
public Set<T> getOutboundNodes(T node)
isConnected
public boolean isConnected(T from,
T to)
addNode
public void addNode(T node)
addEdge
public void addEdge(T from,
T to)
removeEdge
public void removeEdge(T from,
T to)
getTopologicalSort
public List<T> getTopologicalSort(Comparator<T> tieBreaker)
Copyright © 2012 OneBusAway. All Rights Reserved.