Get_nodes is used to get subsets of nodes easily.