updateCache method

  1. @override
void updateCache()

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

@override
void updateCache() {
  _weight.updateCache();
  super.updateCache();
}