graphhopper - Re-use EdgeIterator -


if understand well, edgeiterator can used 1 time. if correct, why can't reset avoid creating new instance of edgeiterator each time need loop on same node edges ?

thanks !

the edgeiterator reused if use edgeexplorer:

// store somewhere explorer = graph.createedgeexplorer();  // use somewhere edgeiterator iter = explorer.setbasenode(x); while(iter) {..} 

still careful need 1 edgeexplorer every thread , every loop e.g. having double for-loop 1 explorer fail :)


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -