Commit
2 years ago
gh-37028: add method to compute the longest (induced) cycle in a (di)graph This PR adds a method to compute the longest (induced) cycle in a (di)graph. The method can also consider weighted cases. This answers a request from https://ask.sagemath.org/question/75124/how- to-find-a-longest-cycle-and-a-longest-induced-cycle-in-a-graph/ ### :memo: Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation accordingly. ### :hourglass: Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: https://github.com/sagemath/sage/pull/37028 Reported by: David Coudert Reviewer(s): David Coudert, Travis Scrimshaw
Author
Release Manager
Loading