Re: [graph-tool] speed of all_neighbours

2018-02-14 Thread Howmahgee
yes, sorry for the lack of detail. Indeed, the issue was my method of timing start=time.time() v.all_neighbors() print(time.time()-start) there is overhead with the print statement, I suspect it is in converting the decimal. thanks for your help! -- Sent from: http://main-discussion-list-for

Re: [graph-tool] speed of all_neighbours

2018-02-11 Thread Tiago de Paula Peixoto
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, 100 loops each) So, not quite. As u