Gets a set of nodes which should be saved

Return

the set of Nodes to be saved

Parameters

nodes

the nodes to traverse the relationships from