[graph-tool] speed of all_neighbours

Tiago de Paula Peixoto tiago at skewed.de
Mon Feb 12 00:40:15 CET 2018


On 11.02.2018 18:41, Howmahgee wrote:
> From trying it on various machines, it seems that it takes around 0.01s for
> v.all_neighbors() where v is an arbitrary vertex. 

In [2]: %timeit v.all_neighbors()
263 ns ± 1.4 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)

So, not quite.

As usual, without a minimal self-contained example of what you are doing, it
is impossible to give any concrete help.

Best,
Tiago

-- 
Tiago de Paula Peixoto <tiago at skewed.de>



More information about the graph-tool mailing list