On sampling nodes in a network