How do I get nodes from the specific edge in the networkx? - by masti I want to compare nodes of different edges in the graph. how can I get the nodes(n1 and n2) from the edge(n1,n2)? Read the article