[graph-tool] How to efficiently work with large graphs up to a maximum search distance?