parents function

Determine and group node-parent combinations.