Am 25.08.21 um 05:19 schrieb [email protected]:
# print the edge names
for e in G.iter_edges():
...    print(e)
...    print(G.ep.name[e])

This should have been either:

  for e in G.edges():
     print(G.ep.name[e])

or

  for s, t, n in G.iter_edges([G.ep.name]):
     print((s, t))
     print(n)

Please read carefully the documentation to understand the difference between G.iter_edges() and G.edges().


--
Tiago de Paula Peixoto <[email protected]>
_______________________________________________
graph-tool mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to