includeVertex

fun includeVertex(vertex: Vertex)

Add a vertex to the graph if it's not already present. If the vertex is already present, do nothing. If the vertex is added it initially has no edges within this graph.

Parameters

vertex

The vertex to add to the graph if not already present.