reset method

void reset()

Implementation

void reset() {
  adjacencyList.clear();
}