Template Class EdgeScore

Inheritance Relationships

Base Type

Class Documentation

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

Abstract base class for an edge score.

Public Functions

EdgeScore(const Graph &G)
virtual void run() override

Compute the edge score.

virtual const std::vector<T> &scores() const

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

Returns:

the edge scores calculated by run().

virtual T score(edgeid eid)

Get the edge score of the edge with the given edge id.

virtual T score(node u, node v)

Get the edge score of the given edge.

Protected Attributes

const Graph *G
std::vector<T> scoreData