Closed JohnnyDeuss closed 3 years ago
Hi @JohnnyDeuss!
Thanks for raising this issue. I'll have a look at it next week and keep you posted 😉
FYI, another variant of the implementation can be found in the branch https://github.com/guilgautier/DPPy/tree/GML_Project_Berenice
Hi @JohnnyDeuss,
I've pushed a fix in the fix_ust
branch with https://github.com/guilgautier/DPPy/commit/5b8ed8ff718d72a0d5a8361beff3985cf5b89289
Does it work for you ?
@JohnnyDeuss ?
Works perfectly! Deals with complex labels without having to do a workaround.
Describe the bug All the UST algorithms assume simple enumerated node labels, i.e. 0, 1, 2, ... This isn't always the case and is an unnecessary limitation. I personally ran into this making a maze generator.
To Reproduce Steps to reproduce the behavior:
This will fail because
nx.grid_2d_graph(30, 20)
uses(x, y)
as labels, since they are more meaningful in grid graphs.My current workaround seems to confirm my suspicion that the UST algorithms break due to the complex node labels; it maps the complex labels to enumerated labels and then maps them back in the resulting spanning tree.
Expected behavior The resulting spanning tree should represent a maze, but the UST algorithms break.