[Networkit] Refactoring Diameter to the standard interface
maximilian.vogel at student.kit.edu
Tue Jan 26 11:36:07 CET 2016
This is just a little brainstorming:
* Refactor the different implementations into private methods.
Implement some logic deciding which algorithm to use in the
constructor. The run()-method then calls the right private method.
Retrieve the result with a getter method (always!) returning a pair.
* Expanding on the previous idea: Move the different implementations
into seperate classes and implement a wrapper class for convenient
Those are the two raw designs that came to my mind. The second one seems
cleaner, but probably means more work.
Any fundamentally different designs? What do you think?
On 25.01.2016 17:58, Christian Staudt wrote:
> I have a situation in which it is very inconvenient that the Diameter class does not follow the standard pattern for our analytics algorithms, with parameter initialization in the constructor and a parameter-less run method.
> Since several other people either depend or work on Diameter, I’d like to discuss proposals on how to refactor. To be honest I’d also be happy if someone would volunteer to implement the refactoring.
> NetworKit mailing list
> NetworKit at ira.uni-karlsruhe.de
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NetworKit