On 06.08.2016 14:00, padraigc wrote:
> Have you any suggestions? I’m considering using the breath first search
> functionality but I don’t think there is an option to terminate the search
> on parts the search tree with distance greater than r.

Take a look at the shortest_distance() function:

     
https://graph-tool.skewed.de/static/doc/topology.html#graph_tool.topology.shortest_distance

It accepts a "max_dist" parameter that does what you want.

Best,
Tiago

-- 
Tiago de Paula Peixoto <[email protected]>

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to