-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
Implemented methods concerning bricks and braces of a matching covered graph #39065
base: develop
Are you sure you want to change the base?
Conversation
Documentation preview for this PR (built with commit 95cfffc; changes) is ready! 🎉 |
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.
Check your code to avoid redundant operations.
Please note that for the following doctest:
It is passing in my local for the following two commands:
However, it is failing in the check for |
is the returned certificate valid ? if so, you must make the method or doctest more robust. This might be a side effect of some data structure (set, graph, etc.) that do not guaranty the order of the items. |
Yes. Both of the certificates are valid.
…On Sun, 1 Dec, 2024, 9:00 pm David Coudert, ***@***.***> wrote:
is the returned certificate valid ? if so, you must make the method or
doctest more robust. This might be a side effect of some data structure
(set, graph, etc.) that do not guaranty the order of the items.
—
Reply to this email directly, view it on GitHub
<#39065 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT2NIZGAEE2UHVDNIZYYH632DMTQ7AVCNFSM6AAAAABSZM5QQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBZHAYTMOBQGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I don't think it's a very large issue. We have You can then do e.g. manual checking that the result is in some finite list in a |
Co-authored-by: user202729 <[email protected]>
You may implement a method to check that the returned certificate is valid and use it instead of printing the certificate. |
something goes wrong with lint. |
Please note that I have added additional information in the output of Also, (I just realised through some examples and testings that) the implementation of Please let me know if this PR requires any further modifications. Thank you. |
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.
Although you have already put (too) many tests, some parts of the code are not covered by tests. See codecov reports. Please add the missing tests.
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.
It seems difficult to fully satisfy codecov anyway.
… a matching covered graph <!-- ^ Please provide a concise and informative title. --> The objective of this issue is to implement the methods pertaining to the bricks and brace of a matching covered graph. <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> More specifically, this PR aims to implement the following two methods: <!-- - [ ] `bricks_and_braces()` | Return the list of (underlying simple graph of) the bricks and braces of the (matching covered) graph. --> - [x] `is_brace()` | Check if the (matching covered) graph is a brace - [x] `is_brick()` | Check if the (matching covered) graph is a brick. <!-- - [ ] `number_of_braces()` | Return the number of braces. --> <!-- - [ ] `number_of_bricks()` | Return the number of bricks. --> <!-- - [ ] `number_of_petersen_bricks()` | Return the number of Petersen bricks. --> <!-- - [ ] `tight_cut_decomposition()` | Return a tight cut decomposition. --> <!-- v Why is this change required? What problem does it solve? --> This PR shall address the methods related to bricks, braces and tight cut decomposition of matching covered graphs. <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> Fixes sagemath#38216. Note that this issue fixes a small part of the mentioned issue. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [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. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies This PR depends on the PR sagemath#38742 and sagemath#38892. <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> cc: @dcoudert. URL: sagemath#39065 Reported by: Janmenjaya Panda Reviewer(s): David Coudert, Janmenjaya Panda, user202729
… a matching covered graph <!-- ^ Please provide a concise and informative title. --> The objective of this issue is to implement the methods pertaining to the bricks and brace of a matching covered graph. <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> More specifically, this PR aims to implement the following two methods: <!-- - [ ] `bricks_and_braces()` | Return the list of (underlying simple graph of) the bricks and braces of the (matching covered) graph. --> - [x] `is_brace()` | Check if the (matching covered) graph is a brace - [x] `is_brick()` | Check if the (matching covered) graph is a brick. <!-- - [ ] `number_of_braces()` | Return the number of braces. --> <!-- - [ ] `number_of_bricks()` | Return the number of bricks. --> <!-- - [ ] `number_of_petersen_bricks()` | Return the number of Petersen bricks. --> <!-- - [ ] `tight_cut_decomposition()` | Return a tight cut decomposition. --> <!-- v Why is this change required? What problem does it solve? --> This PR shall address the methods related to bricks, braces and tight cut decomposition of matching covered graphs. <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> Fixes sagemath#38216. Note that this issue fixes a small part of the mentioned issue. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [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. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies This PR depends on the PR sagemath#38742 and sagemath#38892. <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> cc: @dcoudert. URL: sagemath#39065 Reported by: Janmenjaya Panda Reviewer(s): David Coudert, Janmenjaya Panda, user202729
… a matching covered graph <!-- ^ Please provide a concise and informative title. --> The objective of this issue is to implement the methods pertaining to the bricks and brace of a matching covered graph. <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> More specifically, this PR aims to implement the following two methods: <!-- - [ ] `bricks_and_braces()` | Return the list of (underlying simple graph of) the bricks and braces of the (matching covered) graph. --> - [x] `is_brace()` | Check if the (matching covered) graph is a brace - [x] `is_brick()` | Check if the (matching covered) graph is a brick. <!-- - [ ] `number_of_braces()` | Return the number of braces. --> <!-- - [ ] `number_of_bricks()` | Return the number of bricks. --> <!-- - [ ] `number_of_petersen_bricks()` | Return the number of Petersen bricks. --> <!-- - [ ] `tight_cut_decomposition()` | Return a tight cut decomposition. --> <!-- v Why is this change required? What problem does it solve? --> This PR shall address the methods related to bricks, braces and tight cut decomposition of matching covered graphs. <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> Fixes sagemath#38216. Note that this issue fixes a small part of the mentioned issue. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [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. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies This PR depends on the PR sagemath#38742 and sagemath#38892. <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> cc: @dcoudert. URL: sagemath#39065 Reported by: Janmenjaya Panda Reviewer(s): David Coudert, Janmenjaya Panda, user202729
Set it back to positive review after merge with last beta. |
Hi @dcoudert, |
ok |
The objective of this issue is to implement the methods pertaining to the bricks and brace of a matching covered graph.
More specifically, this PR aims to implement the following two methods:
is_brace()
| Check if the (matching covered) graph is a braceis_brick()
| Check if the (matching covered) graph is a brick.This PR shall address the methods related to bricks, braces and tight cut decomposition of matching covered graphs.
Fixes #38216.
Note that this issue fixes a small part of the mentioned issue.
📝 Checklist
⌛ Dependencies
This PR depends on the PR #38742 and #38892.
cc: @dcoudert.