Skip to content

Fix: Return cycle path as array instead of object map in detectUndirectedCycle#2100

Open
lqaolqao wants to merge 1 commit intotrekhleb:masterfrom
lqaolqao:fix-undirected-cycle-issue
Open

Fix: Return cycle path as array instead of object map in detectUndirectedCycle#2100
lqaolqao wants to merge 1 commit intotrekhleb:masterfrom
lqaolqao:fix-undirected-cycle-issue

Conversation

@lqaolqao
Copy link

This fixes issue #2057 by modifying detectUndirectedCycle.js to return a proper ordered array of vertices forming the cycle instead of an object mapping. The change makes the function return a standard path array which is more intuitive and useful for consumers expecting an ordered path of vertices forming the cycle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant