remove method

void remove(
  1. Vertex<T> vertex
)

Completely remove vertex from the graph, including outgoing and incoming edges.

Implementation

void remove(Vertex<T> vertex) {
  removeIncomingEdges(vertex);
  _inDegreeMap.remove(vertex);
  removeEdges(vertex);
}