I have a list which contains the information about the dependencies between nodes, for example [[node1, [node2, node3, node4]], [node2, [node 5, node6]] ...], which means node1 is dependent on node2, node3 and node4; node2 is dependent on node5 and n...