|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- type of element in the node of the graphpublic interface DirectedGraph<E>
Interface of directed graph. In this graph, if there is an edge between node A and node B, we can traverse only from A to B. We can't traverse from B to A. It's different to say edge A-B or B-A.
Method Summary | |
---|---|
java.util.Collection<Node<E>> |
getDestinations(Node<E> start)
Get nodes started with start node. |
java.util.Collection<Edge<E>> |
getIncoming(Node<E> node)
Get edges ended with end node. |
java.util.Collection<Edge<E>> |
getOutgoing(Node<E> node)
Get edges started with start node. |
java.util.Collection<Node<E>> |
getSources(Node<E> end)
Get nodes end with end node. |
java.util.Collection<AdjacentNode<E>> |
getWeightDestinations(Node<E> start)
Get weighted edges started with start node. |
java.util.Collection<AdjacentNode<E>> |
getWeightSources(Node<E> end)
Get weighted edges ended with end node. |
Methods inherited from interface org.amino.ds.graph.Graph |
---|
addAllNodes, addEdge, addEdge, addEdge, addNode, addNode, clone, containsEdge, containsNode, getAllNodes, getEdges, getEdges, getLinkedEdges, getLinkedNodes, getNodes, removeEdge, removeEdge, removeEdge, removeNode |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
---|
java.util.Collection<AdjacentNode<E>> getWeightDestinations(Node<E> start)
start
- start node
java.util.Collection<Node<E>> getDestinations(Node<E> start)
start
- start node
java.util.Collection<Node<E>> getSources(Node<E> end)
end
- end node
java.util.Collection<AdjacentNode<E>> getWeightSources(Node<E> end)
end
- end node
java.util.Collection<Edge<E>> getIncoming(Node<E> node)
node
- end node
java.util.Collection<Edge<E>> getOutgoing(Node<E> node)
node
- start node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |