1 | initial version |
{{{G.edges}}} is a method, use {{{list(G.edges())}}} for the list of edges.
2 | No.2 Revision |
{{{G.edges}}} G.edges
is a method, use {{{list(G.edges())}}} list(G.edges())
for the list of edges.edges. Store this in a variable before the loop.