findTreeRoots method

Iterator<Node> findTreeRoots()

Returns an iterator of all top-level Nodes that have no tree parents.

This is useful for when you want to traverse the diagram's graph by starting at the root of each tree, assuming that the diagram consists of one tree or a forest of trees. @return {Iterator.

Implementation

_i3.Iterator<_i3.Node> findTreeRoots() => _i4.callMethod(
      this,
      'findTreeRoots',
      [],
    );