All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
NetworKit::EdgeScore< T > Class Template Reference

Abstract base class for an edge score. More...

#include <EdgeScore.h>

Public Member Functions

 EdgeScore (const Graph &G)
 
virtual void run ()
 Compute the edge score. More...
 
virtual std::vector< T > scores () const
 Get a vector containing the score for each edge in the graph. More...
 
virtual T score (edgeid eid)
 Get the edge score of the edge with the given edge id. More...
 
virtual T score (node u, node v)
 Get the edge score of the given edge. 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
 

Protected Attributes

const GraphG
 
std::vector< T > 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

template<typename T>
class NetworKit::EdgeScore< T >

Abstract base class for an edge score.

Constructor & Destructor Documentation

template<typename T >
NetworKit::EdgeScore< T >::EdgeScore ( const Graph G)

Member Function Documentation

template<typename T >
void NetworKit::EdgeScore< T >::run ( )
virtual
template<typename T >
T NetworKit::EdgeScore< T >::score ( edgeid  eid)
virtual
template<typename T >
T NetworKit::EdgeScore< T >::score ( node  u,
node  v 
)
virtual
template<typename T >
std::vector< T > NetworKit::EdgeScore< T >::scores ( ) const
virtual

Get a vector containing the score for each edge in the graph.

the edge scores calculated by run().

Member Data Documentation

template<typename T>
const Graph& NetworKit::EdgeScore< T >::G
protected
template<typename T>
std::vector<T> NetworKit::EdgeScore< T >::scoreData
protected

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