iterator method

Iterator iterator()

returns an iterator of SegmentNodes

Implementation

Iterator iterator() {
  return nodeMap.values.iterator;
}