xgi-org / xgi

CompleX Group Interactions (XGI) is a Python package for higher-order networks.
https://xgi.readthedocs.io
Other
172 stars 27 forks source link

Issue adding edge attributes #480

Closed nwlandry closed 8 months ago

nwlandry commented 8 months ago

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.