removeEdge

fun removeEdge(sourceVertex: Vertex, targetVertex: Vertex)

Remove an edge from the graph, from the source vertex to the target vertex. Fail if either vertex is not present in the graph, or if there is no such edge in the graph.

Parameters

sourceVertex

The source of the edge to remove.

targetVertex

The target of the edge to remove.