minus

abstract operator fun minus(node: Node<T>): Graph<T, W>

Returns a new Graph, with node (and every edge incident to it) removed from it.


abstract operator fun minus(edge: Edge<T, W>): Graph<T, W>

Returns a new Graph, with edge removed from it (its endpoints are kept).