↰ Return to documentation for file (include/networkit/distance/Volume.hpp
)
/*
* Volume.hpp
*
* Created on: July 7, 2018
* Author: Franz-Benjamin Mocnik <mail@mocnik-science.net>
*/
#ifndef NETWORKIT_DISTANCE_VOLUME_HPP_
#define NETWORKIT_DISTANCE_VOLUME_HPP_
#include <unordered_map>
#include <networkit/graph/Graph.hpp>
namespace NetworKit {
class Volume {
private:
static std::unordered_map<node, double> nodesWithinDistance(const Graph &G, double r, node n);
public:
static double volume(const Graph &G, double r, count samples);
static std::vector<double> volume(const Graph &G, std::vector<double> rs, count samples);
};
} /* namespace NetworKit */
#endif // NETWORKIT_DISTANCE_VOLUME_HPP_