Class SpanningForest

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class SpanningForest : public NetworKit::Algorithm

Base class for spanning forest/tree algorithms.

Subclassed by NetworKit::KruskalMSF, NetworKit::RandomSpanningForest

Public Functions

inline SpanningForest(const Graph &G)
virtual void run() override

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

inline const Graph &getForest()
Returns:

Forest computed by run method. Note: So far no explicit check if run method has been invoked before.

Protected Attributes

const Graph *G
Graph forest