includesEdge

fun includesEdge(sourceVertex: Vertex, targetVertex: Vertex): Boolean

Determine if the graph contains an edge from the source vertex to the target vertex. Fail if either vertex is not present in the graph.

Return

Whether the graph contains the specified edge.

Parameters

sourceVertex

The vertex which is the source of the purported edge.

targetVertex

The vertex which is the target of the purported edge.