[Networkit] Community detection class hierarchy in Cython

Michael Hamann michael.hamann at kit.edu
Mon Apr 27 13:03:48 CEST 2015

Dear NetworKit developers,

following the example in [0] I moved all common methods of the community 
detection algorithms in NetworKit to the base class CommunityDetector.

Note that if you implemented additional community detection algorithms that 
use CommunityDetector as base class (which was empty before), you most 
probably need to delete some code of your Cython class and instead add casts 
to all places where the this-pointer must have your specific type.

Similar approaches could probably be used for other classes as well.

Best regards,

[0]: https://github.com/cython/cython/wiki/WrappingSetOfCppClasses

More information about the NetworKit mailing list