-
-
Notifications
You must be signed in to change notification settings - Fork 649
adding has_subgraph_decomposition method to GenericGraph #39598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
041554b
to
40cbaf3
Compare
A question I still have is whether a method |
While I was writing the code, I observed a bug in the current subgraph search which yield duplicate copies of the same subgraph. This is why I first need to create a set of rows to avoid duplicates. I created #39599 for this issue. |
Documentation preview for this PR (built with commit 352a390; changes) is ready! 🎉 |
Some comments
|
40cbaf3
to
041554b
Compare
I just made changes to the branch. I could not push on my own github branch (because it was based on beta6), so I did a forced push. I don't know why commits do not appear here? |
041554b
to
352a390
Compare
Ok, looks better now |
I'm trying to get a better understanding of the definition of the problem. The current description of the method is not enough. A reference might be welcome. Is is possible to get a valid solution such that some edges of Since the graph must be simple, add a call to
|
I finished writting my HDR... and could now come back to this ticket:) I made the changes asked by the reviewer. Except, that I did not add the |
Thanks for your comments. I made the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
sagemathgh-39598: adding has_subgraph_decomposition method to GenericGraph Following the question https://ask.sagemath.org/question/81610/test-if- a-graph-has-a-claw-decomposition/, the current PR is adding a `has_subgraph_decomposition` method to the GenericGraph class. It also adds a `_subgraph_decomposition_dlx` method allowing to enumerate/count the decompositions. ### 📝 Checklist - [x] The title is concise and informative. - [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. - [ ] I have updated the documentation and checked the documentation preview. URL: sagemath#39598 Reported by: Sébastien Labbé Reviewer(s): David Coudert
sagemathgh-39598: adding has_subgraph_decomposition method to GenericGraph Following the question https://ask.sagemath.org/question/81610/test-if- a-graph-has-a-claw-decomposition/, the current PR is adding a `has_subgraph_decomposition` method to the GenericGraph class. It also adds a `_subgraph_decomposition_dlx` method allowing to enumerate/count the decompositions. ### 📝 Checklist - [x] The title is concise and informative. - [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. - [ ] I have updated the documentation and checked the documentation preview. URL: sagemath#39598 Reported by: Sébastien Labbé Reviewer(s): David Coudert
sagemathgh-39598: adding has_subgraph_decomposition method to GenericGraph Following the question https://ask.sagemath.org/question/81610/test-if- a-graph-has-a-claw-decomposition/, the current PR is adding a `has_subgraph_decomposition` method to the GenericGraph class. It also adds a `_subgraph_decomposition_dlx` method allowing to enumerate/count the decompositions. ### 📝 Checklist - [x] The title is concise and informative. - [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. - [ ] I have updated the documentation and checked the documentation preview. URL: sagemath#39598 Reported by: Sébastien Labbé Reviewer(s): David Coudert
sagemathgh-39598: adding has_subgraph_decomposition method to GenericGraph Following the question https://ask.sagemath.org/question/81610/test-if- a-graph-has-a-claw-decomposition/, the current PR is adding a `has_subgraph_decomposition` method to the GenericGraph class. It also adds a `_subgraph_decomposition_dlx` method allowing to enumerate/count the decompositions. ### 📝 Checklist - [x] The title is concise and informative. - [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. - [ ] I have updated the documentation and checked the documentation preview. URL: sagemath#39598 Reported by: Sébastien Labbé Reviewer(s): David Coudert
sagemathgh-39598: adding has_subgraph_decomposition method to GenericGraph Following the question https://ask.sagemath.org/question/81610/test-if- a-graph-has-a-claw-decomposition/, the current PR is adding a `has_subgraph_decomposition` method to the GenericGraph class. It also adds a `_subgraph_decomposition_dlx` method allowing to enumerate/count the decompositions. ### 📝 Checklist - [x] The title is concise and informative. - [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. - [ ] I have updated the documentation and checked the documentation preview. URL: sagemath#39598 Reported by: Sébastien Labbé Reviewer(s): David Coudert
sagemathgh-39598: adding has_subgraph_decomposition method to GenericGraph Following the question https://ask.sagemath.org/question/81610/test-if- a-graph-has-a-claw-decomposition/, the current PR is adding a `has_subgraph_decomposition` method to the GenericGraph class. It also adds a `_subgraph_decomposition_dlx` method allowing to enumerate/count the decompositions. ### 📝 Checklist - [x] The title is concise and informative. - [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. - [ ] I have updated the documentation and checked the documentation preview. URL: sagemath#39598 Reported by: Sébastien Labbé Reviewer(s): David Coudert
Following the question https://ask.sagemath.org/question/81610/test-if-a-graph-has-a-claw-decomposition/,
the current PR is adding a
has_subgraph_decomposition
method to the GenericGraph class.It also adds a
_subgraph_decomposition_dlx
method allowing to enumerate/count the decompositions.📝 Checklist