Added getNodes to get a vector of the group nodes in the tree