list_non_parents function

Returns a list with the nodes that are not directly pointing into a node