Is there a way in networkx to find all the nodes within some distance from a particular node? As in, I specify a node and a distance and get back all nodes within that distance. This is assuming that I added a weight to every edge.
Alternatively, is there a way to find all nodes within a specified degrees from a particular node? Like, what are all the nodes within 2 degrees of separation from a particular node? Degrees meaning, a node is connected to a node is connected to the node. Thank you for your help!

