Program Listing for File LocalTightnessExpansion.hpp

Return to documentation for file (include/networkit/scd/LocalTightnessExpansion.hpp)

#ifndef NETWORKIT_SCD_LOCAL_TIGHTNESS_EXPANSION_HPP_
#define NETWORKIT_SCD_LOCAL_TIGHTNESS_EXPANSION_HPP_

#include <networkit/scd/SelectiveCommunityDetector.hpp>

namespace NetworKit {

class LocalTightnessExpansion : public SelectiveCommunityDetector {
private:
    double alpha;

public:
    LocalTightnessExpansion(const Graph &g, double alpha = 1.0);

    std::set<node> expandOneCommunity(const std::set<node> &s) override;

    using SelectiveCommunityDetector::expandOneCommunity;
};

} // namespace NetworKit

#endif // NETWORKIT_SCD_LOCAL_TIGHTNESS_EXPANSION_HPP_