Program Listing for File HarmonicCloseness.hpp

Return to documentation for file (include/networkit/centrality/HarmonicCloseness.hpp)

/*
 * HarmonicCloseness.hpp
 *
 * Created on: 24.02.2018
 *       Author: Eugenio Angriman
 */

#ifndef NETWORKIT_CENTRALITY_HARMONIC_CLOSENESS_HPP_
#define NETWORKIT_CENTRALITY_HARMONIC_CLOSENESS_HPP_

#include <networkit/centrality/Centrality.hpp>

namespace NetworKit {

class HarmonicCloseness : public Centrality {
public:
    HarmonicCloseness(const Graph &G, bool normalized = true);

    void run() override;

    /*
     * Returns the maximum possible harmonic closeness centrality that a node can
     * have in a star graph with the same amount of nodes.
     */
    double maximum() override;
};
} // namespace NetworKit

#endif // NETWORKIT_CENTRALITY_HARMONIC_CLOSENESS_HPP_