Program Listing for File NeighborhoodFunction.hpp

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

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

#ifndef NETWORKIT_DISTANCE_NEIGHBORHOOD_FUNCTION_HPP_
#define NETWORKIT_DISTANCE_NEIGHBORHOOD_FUNCTION_HPP_

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

namespace NetworKit {

class NeighborhoodFunction final : public Algorithm {

public:
    NeighborhoodFunction(const Graph &G);

    void run() override;

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

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

} /* namespace NetworKit */

#endif // NETWORKIT_DISTANCE_NEIGHBORHOOD_FUNCTION_HPP_