addVertex

fun addVertex(vertex: V)

Add a vertex to the graph. It must not already be present.

Parameters

vertex

The vertex to add.