N- node class
E- edge class
public interface ShrinkableGraph<N,E> extends Graph<N,E>
|Modifier and Type||Method and Description|
Removes an outgoing edge from the given node.
Removes a node from this graph.
Removes a node from this graph, and redirects all incoming edges to the given replacement node (node that outgoing edges are still removed).
adjacentTargetsIterator, adjacentTargetsStream, getAdjacentTargets, getEdgesBetween, getOutgoingEdges, getTarget, outgoingEdges, outgoingEdgesIterator, outgoingEdgesStream
getNodes, iterator, nodeIDs, nodesStream, size
adjacentTargets, createDynamicNodeMapping, createStaticNodeMapping, isConnected
default void removeNode(N node)
node- the node to remove.
nullreplacement is specified, then this function behaves equivalently to the above
node- the node to remove
replacement- the replacement node for incoming edges
Copyright © 2020. All rights reserved.