Hi Tiago, hi all,
When an edge is removed from a graph, it still occupies a place in the
graphs EdgePropertyMap, leading to the following being |False|:
edge_prop.a.shape == graph.num_edges()|
Is there a way to circumvent this?
attachment.html (2.36 KB)
If you use a recent version from git, this can be obtained by getting
the filtered array, with the .fa attribute:
edge_prop.fa.shape == graph.num_edges()
I‘m relying on the deb package, so I’ll have to wait for next release.
Meanwhile, here is a workaround for any one interested:
'''Mask over valid edges '''
valid = graph.new_edge_property('bool')
for edgein graph.edges():
valid = _get_valid_mask(graph)
edge_prop.fa.shape == graph.num_edges()|
Thanks for the fast answer,
attachment.html (6.22 KB)