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