xgi-org/xgi

Issue adding edge attributes

Closed this issue · 0 comments

When I run

weights = dict(zip(list(H.edges), np.random.choice([-1, 1], size=m)))
H.set_edge_attributes(weights, name="weight")

I get the error Edge <id> does not exist! I have an easy fix for this which I will push.