N - type of the nodesL - type of the labelspublic interface EdgeLabelledDirectedGraph<N,L> extends DirectedGraph<N>
DirectedGraph with labels on the edges.| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAnyEdge(L label) |
boolean |
containsAnyEdge(N from,
N to) |
boolean |
containsEdge(N from,
N to,
L label) |
boolean |
containsNode(N node) |
DirectedGraph<N> |
getEdgesForLabel(L label)
Returns a DirectedGraph consisting of all edges with the given label and
their nodes.
|
java.util.List<L> |
getLabelsForEdges(N from,
N to)
Returns a list of labels for which an edge exists between from and to
|
getHeads, getPredsOf, getSuccsOf, getTails, iterator, sizejava.util.List<L> getLabelsForEdges(N from, N to)
from - out node of the edges to get labels forto - in node of the edges to get labels forDirectedGraph<N> getEdgesForLabel(L label)
label - edge label to use as a filter in building the subgraphboolean containsEdge(N from, N to, L label)
from - to - label - boolean containsAnyEdge(N from, N to)
from - out node for the edgesto - in node for the edgesboolean containsAnyEdge(L label)
label - label for the edgesboolean containsNode(N node)
node - node that we want to know if the graph contains