Program Listing for File ClusteringCoefficient.hpp

Return to documentation for file (include/networkit/global/ClusteringCoefficient.hpp)

/*
 * ClusteringCoefficient.hpp
 *
 *  Created on: 08.04.2013
 *      Author: Lukas Barth, David Weiss
 */

#ifndef NETWORKIT_GLOBAL_CLUSTERING_COEFFICIENT_HPP_
#define NETWORKIT_GLOBAL_CLUSTERING_COEFFICIENT_HPP_

#include <networkit/graph/Graph.hpp>

namespace NetworKit {

class ClusteringCoefficient final {

public:
    static double avgLocal(Graph &G, bool turbo = false);
    static double sequentialAvgLocal(const Graph &G);
    static double approxAvgLocal(Graph &G, count trials);

    static double exactGlobal(Graph &G);
    static double approxGlobal(Graph &G, count trials);
};

} /* namespace NetworKit */
#endif // NETWORKIT_GLOBAL_CLUSTERING_COEFFICIENT_HPP_