I am using the shortest_distance method with a starting point vertex and a 
maximum search distance. When returning the results, the vertices outside of 
the maximum distance threshold are returned as maximum 64bit float numbers 
(1.79769313486e+308), presumably converted from Numpy’s internal positive 
infinity value.

Is there a way to return the array with numpy’s positive infinity value intact 
so that I can use the numpy.isposinf method to directly convert the array into 
a boolean format which I can then use for masking the graph?

Thanks.
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to