Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 4 years ago

FrédéricC gravatar image

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

click to hide/show revision 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.