contains

abstract operator fun contains(node: Node<T>): Boolean

Whether node belongs to this graph.


abstract operator fun contains(edge: Edge<T, W>): Boolean

Whether edge (matched by source, destination, and weight) belongs to this graph.