These are notes for a problem I'm running into, just to get thoughts down, and potentially get help in solving this problem.
Given an array of nodes with the following properties:
- id {number} - the unique id of this node
- parents {number[]} - list of ids that are this nodes "parents". If empty, this node "child is a child.