public interface DirectedGraph<N>
extends java.lang.Iterable<N>
Modifier and Type | Method and Description |
---|---|
java.util.List<N> |
getHeads()
Returns a list of entry points for this graph.
|
java.util.List<N> |
getPredsOf(N s)
Returns a list of predecessors for the given node in the graph.
|
java.util.List<N> |
getSuccsOf(N s)
Returns a list of successors for the given node in the graph.
|
java.util.List<N> |
getTails()
Returns a list of exit points for this graph.
|
java.util.Iterator<N> |
iterator()
Returns an iterator for the nodes in this graph.
|
int |
size()
Returns the node count for this graph.
|
java.util.List<N> getHeads()
java.util.List<N> getTails()
java.util.List<N> getPredsOf(N s)
java.util.List<N> getSuccsOf(N s)
int size()