clear method

void clear()

Removes all graph edges.

Implementation

void clear() {
  _edges.clear();
  updateCache();
}