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
blocks_and_cut_vertices() for disconnected graphs #24163
Comments
New commits:
|
Commit: |
comment:3
I pushed in This said, I run tests on |
Changed branch from u/jmantysalo/cut-vertex-disconnected to u/dcoudert/24163 |
Changed author from Jori Mäntysalo to David Coudert |
comment:6
As the main code now handles special cases too, you can remove
It seems strange to say
as you could just use
Otherwise I did not yet read the code. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
I have removed the special cases. The try/except is needed here. The original algorithm do recursive calls. To avoid that, we use stack, plus we use an array (dictionary) of iterators over the neighbors to do the for loop. |
comment:9
Seems to work, here is my test code:
|
comment:11
I went through all methods using |
Changed branch from u/dcoudert/24163 to u/jmantysalo/24163 |
Reviewer: Jori Mäntysalo |
comment:13
Replying to @dcoudert:
Good. This addition actually made parts of Sage simpler.
Yeah, that was my bad. I did a technical merge and will check this one. New commits:
|
comment:14
I assume that the technical merge is a rebase on rc0. Thanks. |
comment:15
Replying to @dcoudert:
Just that. This is good to go, but rc0 is out so I changed the milestone. |
comment:16
OK. Thanks. This is useful improvement. |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. This was a forced push. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:20
Back to positive, this was automatically put to needs_review after my error. |
Changed branch from u/jmantysalo/24163 to |
This patch adds slow but working code to
blocks_and_cut_vertices()
handling disconnected graphs. I also change documentation.Component: graph theory
Author: David Coudert
Branch/Commit:
861ce4c
Reviewer: Jori Mäntysalo
Issue created by migration from https://trac.sagemath.org/ticket/24163
The text was updated successfully, but these errors were encountered: