On 09/28/2013 11:54 AM, Mark Howell wrote:
I am trying to use purge_vertices() with a vertex filter to efficiently remove vertices from a graph. I am seeing different behavior in version 2.2.18 and 2.2.25, both as prebuilt packages for Ubuntu precise (current "graph-tool" and "python-graph-tool" packages, respectively)
[snip] Update... I built graph-tool from the 2.2.25 source tarball and ran from that instead of the python-graph-tool 2.2.25-1 Precise deb package, and my test code ran fine. Wonder if there's some kind of dependency problem in the 2.2.25-1 Precise deb package? FWIW I couldn't get 2.2.25 to build from source with the standard Precise numpy package based on 1.6.1. I replaced that with numpy I built from their 1.7.1 tarball and then was able to build graph-tool successfully... after 2 hours of CPU time ;-) Looking at the present python-graph-tool 2.2.25-1 precise package, it depends on python-scipy (but no particular version or range specified) and from there presumably depends indirectly on numpy. Maybe it is willing to install with an older (1.6) numpy but is partially broken with it? Cheers, Mark.