Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

{{{G.edges}}} is a method, use {{{list(G.edges())}}} for the list of edges.

{{{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.