breadthFirstIterator

abstract fun breadthFirstIterator(parent: N): Iterable<N>

Creates and returns an iterable that traverses the subhierarchy rooted at the give node in breadth-first order. The first node returned by the iterator's next() method is the given node.

Return

an iterable that traverses the subtree rooted at this node in breadth-first order.

Parameters

parent

the root of the hierarchy to traverse