includeEdge

fun includeEdge(sourceVertex: Vertex, targetVertex: Vertex)

Add an edge to the graph from the source vertex to the target vertex. Fail if either vertex is not present in the graph. If the graph already contains an edge from the source vertex to the target vertex then do nothing.

Parameters

sourceVertex

The source of the edge to include.

targetVertex

The target of the edge to include.