removeEdge

fun removeEdge(node1: T, node2: T)

Removes the edge(s) between two nodes in the graph.

Parameters

node1

The first node of the edge to remove.

node2

The second node of the edge to remove.

Throws

IllegalStateException

If either node is not found in the graph.