[Networkit] Interface conventions for analytics algorithms
Moritz von Looz
moritz.looz-corswarem at kit.edu
Mon Nov 3 19:32:49 CET 2014
Am 02.11.2014 um 01:21 schrieb Florian Weber:
> The bottom-line of all this is: Yes, we can work without those, and we
> can also use lambdas to wrap the algorithms in callable objects again,
> but usually it is a good idea to use the stdlib-algorithms, since they
> tend to be more explicit then raw loops and certainly contain less bugs.
> (Also: they are likely faster:
I agree that using the stdlib algorithms is clearer and less bug-prone. However, wrapping our functions in lambdas is - to me - just as clear and certainly less work than refactoring everything into callable objects,
which also adds a possible confusion with the constructor.
All the best,
More information about the NetworKit