clear method

void clear()

Implementation

void clear() {
  for (var n in nodes) {
    n.input = 0;
    n.output = 0;
  }
}