You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-35982: some care in sage/graphs/domination.py
We do some minor changes in `sage/graphs/domination.py`.
The main change is the default value of parameter `work_on_copy` from
`False` to `True`. Firstly, it is safer to ensure that the input graph
is not modified by default, unless the user asks for such behavior.
Secondly, the method was actually working on a copy when the parameter
was `False` (wrong order of tests).
We also add some tests to show that the methods are robust to vertices
with incomparable labels (see #35902).
### 📝 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.
- [ ] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation accordingly.
### ⌛ 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: #35982
Reported by: David Coudert
Reviewer(s): David Coudert, Matthias Köppe
0 commit comments