remove

abstract fun remove(node: Node<T>)

Removes node (and every edge incident to it), in place. Does nothing if node does not belong to this graph.


abstract fun remove(edge: Edge<T, W>)

Removes edge (matched by source and destination only, regardless of weight), in place, keeping its endpoints.