Added method for obtaining selected nodes in network