Program Listing for File SameCommunityIndex.hpp

Return to documentation for file (include/networkit/linkprediction/SameCommunityIndex.hpp)

/*
 * SameCommunityIndex.hpp
 *
 *  Created on: 07.04.2015
 *      Author: Kolja Esders
 */

#ifndef NETWORKIT_LINKPREDICTION_SAME_COMMUNITY_INDEX_HPP_
#define NETWORKIT_LINKPREDICTION_SAME_COMMUNITY_INDEX_HPP_

#include <networkit/linkprediction/LinkPredictor.hpp>
#include <networkit/structures/Partition.hpp>

namespace NetworKit {

class SameCommunityIndex final : public LinkPredictor {
    Partition communities;

    double runImpl(node u, node v) override;

public:
    SameCommunityIndex();

    explicit SameCommunityIndex(const Graph &G);

    void setGraph(const Graph &newGraph) override;
};

} // namespace NetworKit

#endif // NETWORKIT_LINKPREDICTION_SAME_COMMUNITY_INDEX_HPP_