get_last_nodes_created function

Get the last set of nodes created in a graph