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

lshift does not preserve node order #461

Closed maximelucas closed 10 months ago

maximelucas commented 10 months ago

Even if H1 and H2 have the same nodes in the same order, H1 << H2 has nodes in a different order.

This is because lshift adds the edges before the nodes.