Interface ShrinkableGraph<N,​E>

    • Method Detail

      • removeNode

        default void removeNode​(N node)
        Removes a node from this graph. All incoming and outgoing edges are removed as well.
        Parameters:
        node - the node to remove.
      • removeNode

        void removeNode​(N node,
                        @Nullable 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). If a null replacement is specified, then this function behaves equivalently to the above removeNode(Object).
        Parameters:
        node - the node to remove
        replacement - the replacement node for incoming edges
      • removeEdge

        void removeEdge​(N node,
                        E edge)
        Removes an outgoing edge from the given node.
        Parameters:
        node - the node
        edge - the edge to remove