Program Listing for File OverlappingCommunityDetectionAlgorithm.hpp

Return to documentation for file (include/networkit/community/OverlappingCommunityDetectionAlgorithm.hpp)

/*
 * OverlappingCommunityDetectionAlgorithm.hpp
 *
 *  Created on: 14.12.2020
 *      Author: John Gelhausen
 */

#ifndef NETWORKIT_COMMUNITY_OVERLAPPING_COMMUNITY_DETECTION_ALGORITHM_HPP_
#define NETWORKIT_COMMUNITY_OVERLAPPING_COMMUNITY_DETECTION_ALGORITHM_HPP_

#include <networkit/base/Algorithm.hpp>
#include <networkit/graph/Graph.hpp>
#include <networkit/structures/Cover.hpp>

namespace NetworKit {

class OverlappingCommunityDetectionAlgorithm : public Algorithm {
public:
    OverlappingCommunityDetectionAlgorithm(const Graph &G);

    ~OverlappingCommunityDetectionAlgorithm() override = default;

    void run() override = 0;

    const Cover &getCover() const;

protected:
    const Graph *G;
    Cover result;
};

} /* namespace NetworKit */
#endif // NETWORKIT_COMMUNITY_OVERLAPPING_COMMUNITY_DETECTION_ALGORITHM_HPP_