nodeCount method

int nodeCount()

Implementation

int nodeCount() {
  return (_closedOuters.fold(0, (idx, combine) => idx + combine.length) +
              _openOuters.fold(0, (idx, combine) => idx + combine.length) +
              _inner.fold(0, (idx, combine) => idx + combine.length))
          .toInt() +
      (_master?.length ?? 0);
}