Closed 2460b664-5ecd-43fc-9bbe-d0f333762988 closed 5 years ago
Using latest code from both https://github.com/igraph/igraph.git and https://github.com/igraph/python-igraph.git I get
sage: G = graphs.RandomGNP(1000, .01)
sage: I = G.igraph_graph()
sage: %timeit I.pagerank()
1.27 ms ± 13.4 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
So upstream have fixed some bugs already
Thank you for reporting this. So we must update igraph
.
@dimpase: I have never tried to add or update an external package. Your help is more than welcome :P
For some reason, upstream closed https://github.com/igraph/igraph/issues/636, providing a workaround (using perzonalized_pagerank()
instead), rather than a fix...
Upstream: Reported upstream. No feedback yet.
I'd like to wait for upstream to react - update packages using git repos rather than upstream tarballs is a bit of a hassle.
OK, upstream says it's fixed, but not in a release, and new releases won't appear any time soon.
@
rajat1433 - could you make github forks and create new releases there, or I can do this, whatever you prefer.
Changed upstream from Reported upstream. No feedback yet. to Fixed upstream, but not in a stable release.
Replying to @dimpase:
OK, upstream says it's fixed, but not in a release, and new releases won't appear any time soon.
@
rajat1433 - could you make github forks and create new releases there, or I can do this, whatever you prefer.
I don't have much of an experience in creating new releases. If you can guide me through steps I can do it. But since you have an experience you can do it faster so your help is more than welcome.
We could just cherry-pick https://github.com/igraph/igraph/commit/923974d7520bc49a6b52d34700fb25f0cea66718 taking a snapshot is much more risky and may imply changes of behavior.
I've managed to make a tarball from the master that also passes the testsuite (SAGE_CHECK=yes ./sage -f igraph) it's here https://github.com/dimpase/igraph/releases/tag/0.7.1999
Branch: u/dimpase/packages/igraph_etc
please review these, and test on OSX. On Linux this passes both SAGE_CHECK=yes ./sage -f igraph python_igraph
and
the relevant doctests in src/sage/graphs/
New commits:
721ccc3 | updated igraph and python_igraph to master |
Description changed:
---
+++
@@ -56,3 +56,10 @@
Also see https://groups.google.com/forum/#!topic/sage-devel/NtVP5AQgqNs + +--- + +updates, tarballs: +https://github.com/dimpase/igraph/releases/download/0.7.1999/igraph-0.7.1999.1.tar.gz +and +https://github.com/dimpase/python-igraph/releases/download/0.7.1999/python_igraph-0.7.1999.tar.gz
Author: Dima Pasechnik
What's the right set of instructions to test this patch (I have never done that yet, or I don't remember). Thanks.
You need to download the linked tarballs to upstream/ And the usual git thing, naturally.
And ./sage -f python_igraph
Thank you.
I add to rename file https://github.com/dimpase/igraph/releases/download/0.7.1999/igraph-0.7.1999.1.tar.gz to https://github.com/dimpase/igraph/releases/download/0.7.1999/igraph-0.7.1999.tar.gz (so .1.tar.gz
-> .tar.gz
)
Then everything is working well and I can do
sage: G = graphs.PetersenGraph()
sage: I = G.igraph_graph()
sage: I.pagerank()
[0.09999999999999999,
0.09999999999999999,
0.10000000000000002,
0.10000000000000002,
0.1,
0.1,
0.1,
0.09999999999999999,
0.1,
0.09999999999999999]
Someone should double check on linux.
Yep, a typo in file name, sorry. Fixed.
Description changed:
---
+++
@@ -60,6 +60,6 @@
---
updates, tarballs:
-https://github.com/dimpase/igraph/releases/download/0.7.1999/igraph-0.7.1999.1.tar.gz
+https://github.com/dimpase/igraph/releases/download/0.7.1999/igraph-0.7.1999.tar.gz
and
https://github.com/dimpase/python-igraph/releases/download/0.7.1999/python_igraph-0.7.1999.tar.gz
I'm no able to access https://github.com/dimpase/igraph/releases/download/0.7.1999/igraph-0.7.1999.tar.gz
Sorry, my fault. Please try now (and check that it is identical to the one you renamed).
For me the files are the same.
I tried on a linux computer and it's working well. I can use the pagerank method of igraph.
For me this patch is good to go. Should we update the ticket title and description before setting it to positive review?
How about we add a doctest with pagenumber computation?
Should we really? We had those conversations in the last few weeks. Do we really want to add tests to sage about bugs in upstream packages? No, if anything the test belongs to the upstream package. This is a case in point and adding a test to sage is scope creep.
We plan to add method pagerank to generic graphs. It will call either methods of networkx (pure Python, or using numpy or scipy), or if installed igraph. So we will certainly have a test to check that it's working well, as we have with other optional packages (e.g., bliss, tdlib, etc.).
That is fine, you are just checking that sage works, not that an upstream package as been fixed through sage.
For what it's worth, with this branch I get two failures when I do sage -f -c igraph
on OS X Mojave:
...
124: Merging layouts 2 (igraph_i_layout_merge): FAILED (layout.at:62)
...
241: SCG of a graph, stochastic matrix (igraph_scg) : FAILED (scg.at:73)
...
ERROR: 249 tests were run,
2 failed unexpectedly.
2 tests were skipped.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##
The previous version of igraph
failed two other (?) tests, so I don't think the new failures should necessarily be an obstacle for a positive review. Failures from old version:
...
25: Sparse matrix, solvers (igraph_sparsemat_t): FAILED (types.at:148)
...
32: Another sparse matrix (igraph_spmatrix_t): FAILED (types.at:183)
...
ERROR: All 234 tests were run,
2 failed unexpectedly.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##
Reviewer: David Coudert
I also tried sage -f -c igraph
with
I set this ticket as positive review. It fixes some issues, and I don't know where pre-existing issues come from.
Ticket retargeted after milestone closed (if you don't believe this ticket is appropriate for the Sage 8.8 release please retarget manually)
Changed branch from u/dimpase/packages/igraph_etc to 721ccc3
Following error arise in linux but works fine in Mac OS.
gives following error
Also see https://groups.google.com/forum/#!topic/sage-devel/NtVP5AQgqNs
updates, tarballs: https://github.com/dimpase/igraph/releases/download/0.7.1999/igraph-0.7.1999.tar.gz and https://github.com/dimpase/python-igraph/releases/download/0.7.1999/python_igraph-0.7.1999.tar.gz
Upstream: Fixed upstream, but not in a stable release.
CC: @dimpase @dcoudert
Component: packages: optional
Author: Dima Pasechnik
Branch/Commit:
721ccc3
Reviewer: David Coudert
Issue created by migration from https://trac.sagemath.org/ticket/27502