I have just made a small test. Instead of passing the filtered graph to the shortest_distance function, I have generated a copy of the filtered graph and it works fine.
It seems that exist a problem with the shortest_distance function.
On 6 July 2010 13:19, Juan Manuel Tirado jtirado@inf.uc3m.es wrote:
Here it is the output from the show_config()
gt.show_config() version: 2.2.5 (commit 3ba24072, Sun Feb 21 00:46:41 2010 +0100) gcc version: 4.4.1 compilation flags: -I/usr/include/python2.6 -I/usr/include -I/usr/lib/python2.6/dist-packages/numpy/core/include/numpy -I/usr/lib/python2.6/dist-packages/scipy -O3 -Wall -ftemplate-depth-150 -Wno-deprecated -O99 -fvisibility=default -fvisibility-inlines-hidden -fopenmp -Wl,-Bsymbolic-functions -L/usr/lib/python2.6 -lpython2.6 install prefix: /usr python dir: /usr/lib/python2.6/dist-packages graph filtering: True openmp: True uname: Linux 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 08:03:28 UTC 2010 x86_64
I am using the code from the ubuntu package, so I'm not using the latest 2.2.6 version. I will try to install and make a test with the latest version, as I see it is not available via apt-get.
On 6 July 2010 13:12, Tiago de Paula Peixoto tiago@forked.de wrote:
Hi Juan,
On 07/06/2010 12:57 PM, Juan Manuel Tirado wrote:
The last line of code rises a segmentation fault. I have plotted the graph with the filtered graph and its correct, also I can calculate the local_clustering_coefficient without problems. Am I doing something wrong? Is there any other way to filter the graph and calculate the shortest distances? Is this a bug?
A segmentation fault is always a bug... Can you please give me the output of the graph_tool.show_config() function?
Cheers, Tiago
-- Tiago de Paula Peixoto tiago@forked.de _______________________________________________ graph-tool mailing list graph-tool@forked.de http://lists.forked.de/mailman/listinfo/graph-tool