Replies: 1 comment 1 reply
-
Seems to have resolved the issue with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
import
networkx as nxG = nx.Graph()
G.add_edge(0, 1)
G.add_edge(1, 2)
print(G.number_of_edges(0, 2))
0`
Tell me why the method does not want to return 2 when I built a graph of 3 connected nodes?
Between nodes 0 and 2 there are 2 edges.
If I'm wrong, suggest a method that would count the number of edges between nodes
Beta Was this translation helpful? Give feedback.
All reactions