Program Listing for File NeighborhoodFunctionApproximation.hpp

Return to documentation for file (include/networkit/distance/NeighborhoodFunctionApproximation.hpp)

/*
 * NeighborhoodFunctionApproximation.hpp
 *
 *  Created on: 30.03.2016
 *      Author: Maximilian Vogel
 */

#ifndef NETWORKIT_DISTANCE_NEIGHBORHOOD_FUNCTION_APPROXIMATION_HPP_
#define NETWORKIT_DISTANCE_NEIGHBORHOOD_FUNCTION_APPROXIMATION_HPP_

#include <networkit/base/Algorithm.hpp>
#include <networkit/graph/Graph.hpp>

namespace NetworKit {

class NeighborhoodFunctionApproximation final : public Algorithm {

public:
    NeighborhoodFunctionApproximation(const Graph &G, count k = 64, count r = 7);

    void run() override;

    const std::vector<count> &getNeighborhoodFunction() const;

private:
    const Graph *G;
    const count k;
    const count r;
    std::vector<count> result;
};

} /* namespace NetworKit */

#endif // NETWORKIT_DISTANCE_NEIGHBORHOOD_FUNCTION_APPROXIMATION_HPP_