clear method

void clear()

Implementation

void clear() {
  nodes.clear();
}