↰ Return to documentation for file (include/networkit/distance/AdamicAdarDistance.hpp
)
/*
* AdamicAdarDistance.hpp
*
* Created on: 18.11.2014
* Author: Michael Hamann, Gerd Lindner
*/
#ifndef NETWORKIT_DISTANCE_ADAMIC_ADAR_DISTANCE_HPP_
#define NETWORKIT_DISTANCE_ADAMIC_ADAR_DISTANCE_HPP_
#include <networkit/distance/NodeDistance.hpp>
#include <networkit/graph/Graph.hpp>
namespace NetworKit {
class AdamicAdarDistance final : public NodeDistance {
private:
std::vector<double> aaDistance; // result vector
public:
AdamicAdarDistance(const Graph &G);
void preprocess() override;
double distance(node u, node v) override;
const std::vector<double> &getEdgeScores() const override;
};
} /* namespace NetworKit */
#endif // NETWORKIT_DISTANCE_ADAMIC_ADAR_DISTANCE_HPP_