includeVertex

fun includeVertex(vertex: V): Boolean

Add a vertex to the graph. Do nothing if the vertex is already present. Answer whether the graph was changed (i.e., whether the vertex was not already present).

Return

Whether the graph changed.

Parameters

vertex

The vertex to include.