removeVertex

fun removeVertex(vertex: Vertex)

Remove a vertex from the graph, failing if it has any connected edges. Fail if the vertex is not present in the graph.

Parameters

vertex

The vertex to attempt to remove from the graph.