25 Aug
2021
25 Aug
'21
6:21 a.m.
Am 25.08.21 um 05:19 schrieb ag@alan.gold:
# 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 <tiago@skewed.de>