updateCache method

void updateCache()
inherited

Marks cached variables as stale. This method is called every time vertices or edges are added or removed from the graph.

After calling this method all cached variables will be recalculated when next accessed.

Implementation

void updateCache() {
  _outDegreeMap.updateCache();
  _inDegreeMap.updateCache();
  _sortedVertices.updateCache();
}