Add a method to get all the node id.