addEdge

fun addEdge(edge: E)

Add an edge to the graph. The edge (or an equal one) must not already be present in the graph. The edge's source and destination vertices must already be present in the graph.

Parameters

edge

The edge to add.