N
- node classE
- edge classpublic interface ShrinkableGraph<N,E> extends Graph<N,E>
Modifier and Type | Method and Description |
---|---|
void |
removeEdge(N node,
E edge)
Removes an outgoing edge from the given node.
|
void |
removeNode(N node)
Removes a node from this graph.
|
void |
removeNode(N node,
N replacement)
Removes a node from this graph, and redirects all incoming edges to
the given replacement node (node that outgoing edges are still removed).
|
createDynamicNodeMapping, createStaticNodeMapping, getOutgoingEdges, getTarget
forEach, iterator, spliterator
void removeNode(N node)
node
- the node to remove.void removeNode(N node, N replacement)
removeNode(Object)
.node
- the node to removereplacement
- the replacement node for incoming edgesvoid removeEdge(N node, E edge)
node
- the nodeedge
- the edge to removeCopyright © 2015. All Rights Reserved.