All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
NetworKit::SimmelianOverlapScore Class Reference

Calculates the Simmelian backbone (paramaetric variant) for a given input graph. More...

#include <SimmelianOverlapScore.h>

Public Member Functions

 SimmelianOverlapScore (const Graph &graph, const std::vector< count > &triangles, count maxRank)
 Creates a new instance of the parametric variant of the Simmelian Backbone calculator. More...
 
virtual void run () override
 Compute the edge score. More...
 
- Public Member Functions inherited from NetworKit::SimmelianScore
 SimmelianScore (const Graph &graph, const std::vector< count > &attribute)
 
virtual double score (edgeid eid) override
 Get the edge score of the edge with the given edge id. More...
 
virtual double score (node u, node v) override
 Get the edge score of the given edge. More...
 
std::vector< RankedNeighborsgetRankedNeighborhood (const Graph &g, const std::vector< count > &triangles)
 
Redundancy getOverlap (const node &ego, const node &alter, const std::vector< RankedNeighbors > &neighbors, const count &maxRank)
 
void matchNeighbors (const node &ego, const node &alter, const bool &reciprocityCheck, std::vector< RankedEdge >::const_iterator &egoIt, const RankedNeighbors &egoNeighbors, std::set< node > &egoNeighborsUnmatched, std::set< node > &alterNeighborsUnmatched, const count &rank, count &overlap)
 Helper function used in getOverlap. More...
 
- Public Member Functions inherited from NetworKit::EdgeScore< double >
 EdgeScore (const Graph &G)
 
virtual std::vector< double > scores () const
 Get a vector containing the score for each edge in the graph. More...
 
- Public Member Functions inherited from NetworKit::Algorithm
 Algorithm ()
 Constructor to the algorithm base class. More...
 
virtual ~Algorithm ()=default
 Virtual default destructor. More...
 
bool hasFinished () const
 Indicates whether an algorithm has completed computation or not. More...
 
void assureFinished () const
 Assure that the algorithm has been run, throws a std::runtime_error otherwise. More...
 
virtual std::string toString () const
 Returns a string with the algorithm's name and its parameters, if there are any. More...
 
virtual bool isParallel () const
 

Additional Inherited Members

- Protected Attributes inherited from NetworKit::SimmelianScore
const std::vector< count > & triangles
 
- Protected Attributes inherited from NetworKit::EdgeScore< double >
const GraphG
 
std::vector< double > scoreData
 
- Protected Attributes inherited from NetworKit::Algorithm
bool hasRun
 A boolean variable indicating whether an algorithm has finished its computation or not. More...
 

Detailed Description

Calculates the Simmelian backbone (paramaetric variant) for a given input graph.

Constructor & Destructor Documentation

NetworKit::SimmelianOverlapScore::SimmelianOverlapScore ( const Graph graph,
const std::vector< count > &  triangles,
count  maxRank 
)

Creates a new instance of the parametric variant of the Simmelian Backbone calculator.

Parameters
maxRankthe maximum rank that is considered for overlap calculation

Member Function Documentation

void NetworKit::SimmelianOverlapScore::run ( )
overridevirtual

Compute the edge score.

Reimplemented from NetworKit::EdgeScore< double >.


The documentation for this class was generated from the following files: