N - L - public interface MutableEdgeLabelledDirectedGraph<N,L> extends EdgeLabelledDirectedGraph<N,L>
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(N from,
N to,
L label)
Adds an edge to the graph between 2 nodes.
|
void |
addNode(N node)
Adds a node to the graph.
|
void |
removeAllEdges(L label)
Removes all edges with the given label in the graph.
|
void |
removeAllEdges(N from,
N to)
Removes all edges between 2 nodes in the graph.
|
void |
removeEdge(N from,
N to,
L label)
Removes an edge between 2 nodes in the graph.
|
void |
removeNode(N node)
Removes a node from the graph.
|
containsAnyEdge, containsAnyEdge, containsEdge, containsNode, getEdgesForLabel, getLabelsForEdgesgetHeads, getPredsOf, getSuccsOf, getTails, iterator, sizevoid addEdge(N from, N to, L label)
from - out node for the edge.to - in node for the edge.label - label for the edge.void removeEdge(N from, N to, L label)
from - out node for the edges to remove.to - in node for the edges to remove.label - label for the edge to remove.void removeAllEdges(N from, N to)
from - out node for the edges to remove.to - in node for the edges to remove.void removeAllEdges(L label)
label - label for the edge to remove.void addNode(N node)
node - a node to add to the graph.DirectedGraph.getHeads(),
DirectedGraph.getTails()void removeNode(N node)
node - the node to be removed.