removeEdges method

void removeEdges(
  1. T vertex,
  2. Set<T> connectedVertices
)

Removes edges (connections) pointing from vertex to connectedVertices.

  • Note: Does not remove the vertices.

Implementation

void removeEdges(T vertex, Set<T> connectedVertices) {
  _edges[vertex]?.removeAll(connectedVertices);
  updateCache();
}