The level attribute within a mesh level, e.g. (direction == same), is called "level", opposed to when the edges connect different mesh levels. In those cases it is called "levels".
E.g.
|
G_down.edges[u, v]["levels"] = f"{from_level}>{to_level}" |
vs.
|
G.edges[u, v]["level"] = i |
This causes issues, e.g. when using https://github.com/pyg-team/pytorch_geometric/blob/afffee9f089ac0fe1eb8c1600c6e0b2e07ca6f80/torch_geometric/utils/convert.py#L260-L262