ValueError: invalid vertex descriptor during get_edges_prob
Bug reports:
Please follow the general troubleshooting steps first:
-
Are you running the latest graph-tool
version? yes -
Do you observe the problem with the current git version? Observed with 2.23dev (commit b626e713, Tue Mar 28 22:29:08 2017 +0100) -
Did you compile graph-tool
manually? yes -
If you answered yes above, did you use the exact same compiler to build graph-tool
,boost-python
andPython
? yes
Running attached mwe on attached network I get error message shown below during get_edges_prob
. I am running the git version on Ubuntu 16.04 and my Python version is Python 2.7.13 |Anaconda custom (64-bit)
. It was compiled using GCC 5.4.0 and is using boost1.60.
Based on previous, similar errors I suspect this may be linked to me deleting edges from my graph but I do not know for certain.bug_mwe.pygraph_clean.gt
This is the error message that I receive:
(<invalid Vertex object at 0x7f2ed082de50>, <invalid Vertex object at 0x7f2ed085c2d0>)
Traceback (most recent call last):
File "bug_mwe.py", line 80, in <module>
callback=collect_edge_probs,history=True)
File "/home/pmj27/anaconda2/lib/python2.7/site-packages/graph_tool/inference/mcmc.py", line 155, in mcmc_equilibrate
extra = callback(state)
File "bug_mwe.py", line 14, in collect_edge_probs
p = s.get_edges_prob([chosen_test_edges[i]], entropy_args=dict(partition_dl=False))
File "/home/pmj27/anaconda2/lib/python2.7/site-packages/graph_tool/inference/nested_blockmodel.py", line 353, in get_edges_prob
Ll = lstate.get_edges_prob(missing, spurious, entropy_args=eargs)
File "/home/pmj27/anaconda2/lib/python2.7/site-packages/graph_tool/inference/blockmodel.py", line 1151, in get_edges_prob
pos[u] = self.b[u]
File "/home/pmj27/anaconda2/lib/python2.7/site-packages/graph_tool/__init__.py", line 443, in __getitem__
return self.__map[k]
ValueError: invalid vertex descriptor: 119451