N - node classE - edge class@ParametersAreNonnullByDefault public interface ShrinkableGraph<N,E> extends Graph<N,E>
SimpleGraph.NormalGraphView<N,G extends SimpleGraph<N>>| 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).
|
asNormalGraph, getVisualizationHelperadjacentTargetsIterator, adjacentTargetsStream, getAdjacentTargets, getEdgesBetween, getOutgoingEdges, getTarget, outgoingEdges, outgoingEdgesIterator, outgoingEdgesStreamgetNodes, iterator, nodeIDs, nodesStream, sizeadjacentTargets, createDynamicNodeMapping, createStaticNodeMapping, isConnectedforEach, spliteratorvoid removeNode(N node)
node - the node to remove.void removeNode(N node, @Nullable N replacement)
removeNode(Object).node - the node to removereplacement - the replacement node for incoming edgesCopyright © 2018. All rights reserved.