includeEdge

fun includeEdge(edge: E): Boolean

Include an edge in the graph. If the edge (or an equal one) is already present, do nothing. The edge's source and destination vertices must already be present in the graph. Answer whether the graph changed (i.e., if this edge was not already present in the graph).

Return

Whether the graph changed.

Parameters

edge

The edge to include.