↰ Return to documentation for file (include/networkit/centrality/DegreeCentrality.hpp
)
/*
* DegreeCentrality.hpp
*
* Created on: 19.02.2014
* Author: cls
*/
#ifndef NETWORKIT_CENTRALITY_DEGREE_CENTRALITY_HPP_
#define NETWORKIT_CENTRALITY_DEGREE_CENTRALITY_HPP_
#include <networkit/centrality/Centrality.hpp>
namespace NetworKit {
class DegreeCentrality : public Centrality {
public:
DegreeCentrality(const Graph &G, bool normalized = false, bool outDeg = true,
bool ignoreSelfLoops = true);
void run() override;
double maximum() override;
private:
bool outDeg, ignoreSelfLoops;
};
} /* namespace NetworKit */
#endif // NETWORKIT_CENTRALITY_DEGREE_CENTRALITY_HPP_