graph_tool.centrality.pagerank throws a segmentation fault (v. 2.22)
This may be related to #380 (closed) because pagerank
uses OpenMP code.
2.22 (commit 44bf2b92, Thu Mar 2 23:08:39 2017 +0000)
SSCCE below.
Bug reports:
Please follow the general troubleshooting steps first:
-
Are you running the latest graph-tool
version? -
Do you observe the problem with the current git version? -
Are you using Macports or Homebrew? If yes, please submit an issue there instead: https://github.com/Homebrew/brew/issues and https://trac.macports.org/newticket -
Did you compile graph-tool
manually? -
If you answered yes above, did you use the exact same compiler to build graph-tool
,boost-python
andPython
?
Please replace this section with a brief summary of your issue.
Do not forget to supply the following information:
-
A minimal and self-contained example that shows the problem. -
Your operating system. -
The Python version you are using. -
If you compiled graph-tool manually: Your compiler version, as well as the version of Boost being used. -
If you are reporting a compilation error, please provide the entire ./configure
output, as well as the entire contents of theconfig.log
file and the entire compilation output.
Do not forget to add code snippets and error messages using Markdown, i.e.
import graph_tool, graph_tool.all as gt
import numpy as np, numpy.random as npr
print(gt.__version__)
# Erdős–Rényi
N = 5000
p = 1.5 * np.log(N)/N
g = gt.random_graph(N, deg_sampler=lambda: npr.poisson((N-1)*p), directed=False, model='erdos')
# Segmentation fault
pr = graph_tool.centrality.pagerank(g)