As networkX does not provide any good support o getting a nearest neighbour iterator with node data this is a utility function for doing just that.
Parameters : | graph :netwokx.Graph :
n : networkx node
|
---|---|
Returns : | iter : list iterator
|
Notes
Is there a more efficient way of doing this?