Class RandomEdgeScore

Inheritance Relationships

Base Type

Class Documentation

class RandomEdgeScore : public NetworKit::EdgeScore<double>

Generates a random edge attribute. Each edge is assigned a random value in [0,1].

Public Functions

RandomEdgeScore(const Graph &G)

Creates a new instance of the Random edge score.

virtual double score(edgeid eid) override

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

virtual double score(node u, node v) override

Get the edge score of the given edge.

virtual void run() override

The generic run method which calls runImpl() and takes care of setting hasRun to the appropriate value.