Returns a breadth-first traversal of nodes, removing those with null data, and pairing the data to the layout.
Especially useful with flatHierarchy after performing a layout, before feeding into selection data.