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
Use Sage to compute clustering coefficient #18834
Comments
Branch: u/ncohen/18834 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
Author: Nathann Cohen |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:7
rebased on top of #18811. |
comment:8
For me the patch is good to go (and the boost method is pretty fast in fact). |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
Done! But what do you mean by 'boost is pretty fast'?? Sage is 100x faster |
comment:11
On a clique that's for sure, but on other kinds of graphs...
|
comment:12
Also, I have an issue:
I'll send you the graph by mail if you want to investigate. |
comment:13
Oh.. Wow.. HMmmm.. It seems that those graphs are stuffed with degree-2 vertices. I wonder how they do that Nathann |
comment:14
I assume they iterate over the edges, which is what I would do on a sparse graph. |
comment:15
They probably do a dichotomic search where I do a linear search. I'll try to see tomorrow evening (I will sleep in an airport) if I can do something about that. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:18
A more correct fix. About the difference in timings:
It seems that a nontrivial part of the difference in timing is taken by the construction of the.... final dictionary. Profiling the method does not show a major cost of the actual algorithm.. So well, it seems that this graph is so easy to deal with that returning the result is not negligible Nathann |
comment:19
For me the patch is now good to go! |
Reviewer: David Coudert |
comment:20
Thanks ! Nathann |
Changed branch from u/ncohen/18834 to |
Will have to be rebased+adapted over #18811.
Depends on #18811
CC: @sagetrac-borassi @dcoudert
Component: graph theory
Author: Nathann Cohen
Branch/Commit:
8c25063
Reviewer: David Coudert
Issue created by migration from https://trac.sagemath.org/ticket/18834
The text was updated successfully, but these errors were encountered: