All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PrefixJaccardScore.h
Go to the documentation of this file.
1 #ifndef PREFIXJACCARDSCORE_H
2 #define PREFIXJACCARDSCORE_H
3 
4 #include "../edgescores/EdgeScore.h"
5 
6 namespace NetworKit {
7 
8 template <typename AttributeT>
9 class PrefixJaccardScore : public EdgeScore<double> {
10 
11 public:
12  PrefixJaccardScore(const Graph& G, const std::vector<AttributeT>& attribute);
13  virtual double score(edgeid eid) override;
14  virtual double score(node u, node v) override;
15  virtual void run() override;
16 
17 
18 private:
19  const std::vector<AttributeT>& inAttribute;
20 
21 };
22 
23 }
24 
25 #endif // PREFIXJACCARDSCORE_H
index edgeid
Definition: Globals.h:25
const Graph & G
Definition: EdgeScore.h:43
virtual double score(edgeid eid) override
Get the edge score of the edge with the given edge id.
Definition: PrefixJaccardScore.cpp:159
index node
Definition: Globals.h:23
virtual void run() override
Compute the edge score.
Definition: PrefixJaccardScore.cpp:19
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79
PrefixJaccardScore(const Graph &G, const std::vector< AttributeT > &attribute)
Definition: PrefixJaccardScore.cpp:14
Abstract base class for an edge score.
Definition: EdgeScore.h:20
Definition: PrefixJaccardScore.h:9