Implemented get_nodes