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
Ear Decomposition #25002
Comments
comment:1
I cannot access the branch. Please check. |
comment:2
There is a small problem with my college network for ssh, I will let you know as soon as solved. Replying to @dcoudert:
|
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
Please have a look, the branch is up and accessible. Jens algorithm:
Potential Applications:
P.S : For the first step, we not only need tree but also some extra information which will be used in Tree traversal because of this I didn't use the existing DFS function and created my own. Please let me know what more I can do to improve the code performance. |
comment:6
Welcome to Sagemath and thank you for this contribution. There is no need to add a new file. This method should be inside Note that you don't need a class. You can define local methods inside a method like:
The local method can access local data list/dict, etc. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
As suggested by you, I have removed ear_decomposition.py and added ear_decomposition method to graph.py with updated comments. Please have a look and let me know, what more improvements can be done. |
comment:9
Some (unordered) comments.
I understand that I'm asking a lot of modifications, and I will ask for more, but it is very important to have an easy to read code, so that others can go inside an correct/improve parts if needed. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Thanks for your valuable comments. Replying to @dcoudert:
Sure I will
Okay
Yes, actually I always have a habit of adding some extra pieces of information in variable names, but seen and traversed are more meaningful than current ones.
Yes
graph gives more readability, now onwards I will use self to access input graph. Reference: treewidth() function in graph.py
I thought I will be using number of vertices value very often so I stored it in a variable, instead of calling graph.num_verts() but now it's of no use.
But few methods like clique_complex(), checks weather the input graph is directed or not.
Yes we can do it, updated.
Okay.
where as
Yes.
I added the describtion.
Made necessary changes.
Yes
Indirectly it benefits me to write better code. Please let me know what more I can do to improve the code performance. New commits:
New commits:
|
comment:12
Should not since in graph.py, the methods are for Graph, and so not directed. It's different in
Read carefully what I wrote.
and in a loop it's better to use |
comment:13
Replying to @dcoudert:
Yes but still some functions are still checking it, might be there are not updated yet.
My mistake, thanks for correcting it again.
Yes this will save space and time. Update you as soon as I complete these changes. Thanks. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
Quick comments before going to a meeting :(
|
comment:17
Thanks for quick response.
Yes, you are correct, actually, in the algorithm, it's mention that traverses till you find start vertex or a visited vertex. As I am marking start as visited at first step, there is no use of
Sure
That case is taken care by seen list Let us suppose we have 2 connected components with 5 vertices in each component. Component 1 = Component 2 = When first DFS(1) is run it will visit 4 vertices and mark it as seen .i.e When vertice 6 comes it will call DFS(6), which will visit remaining 4 vertices and mark it as seen. By this, all the vertices and connected components are covered, with extra cost( P.S: seen is not reinitialized after DFS call. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:19
the loop |
comment:35
Replying to @dcoudert:
Could you please have a look again, I have modified the code according to your suggestions.
Updated all the minor changes.
I am unable to see it could you provide me more information about it.
Thanks. Could you please have a look at my comment at ticket: 22157: Add SPQR-tree decomposition for 2-vertex-connected graphs. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:37
Please carefully check your code before pushing a commit.
I have additional comments:
you can use
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:39
Replying to @dcoudert:
Yes I should have changed it, before commiting it. I apologies for it.
Thanks for the suggestion.
Updated.
Cross checked twice and removed all the extra spaces and lines.
Thanks, I will go through it more carefully. |
comment:40
Could you please say why it's saying, build failed on patchbot, where I am able to successfully build in my system. When I see build failed log of patchbot, Sage build/upgrade complete! fatal: Unable to read current working directory: No such file or directory I found that it's able to build but can't read some files. Could you please have a look and please let me know, is there any issue from my side? |
comment:41
The problem is independent from your patch. Concerning your ticket.
I saw that the last version of networkx contains |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:43
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:45
For me this patch is now good to go, But I still don't understand this (should we care about it or not)
I'm adding Dima in cc for opinion. |
comment:46
Replying to @dcoudert:
This branch does contain a directory named git-trac-command. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:48
Replying to @sagetrac-git:
I thought it's a file, which was created by me and I was searching in src folder. |
comment:49
Thank you Dima. |
comment:50
Replying to @sagetrac-saiharsh:
most likely you were doing |
comment:51
Replying to @dimpase:
Sure, I will keep that in mind before making any new commits in future. |
Changed branch from u/saiharsh/EarDecomposition to |
Adding Ear Decomposition Algorithm to Graph Decomposition,
Current efficient algorithm for ear decomposition. https://www.sciencedirect.com/science/article/pii/S0020019013000288?via%3Dihub
The above one works for Undirected connected graph.
CC: @dcoudert @dimpase
Component: graph theory
Keywords: Ear Decomposition
Author: Tondomker Sai Harsh
Branch/Commit:
9b43b3e
Reviewer: David Coudert
Issue created by migration from https://trac.sagemath.org/ticket/25002
The text was updated successfully, but these errors were encountered: