Class DynamicGraphSource

Inheritance Relationships

Derived Types

Class Documentation

class DynamicGraphSource

Subclassed by NetworKit::DynamicBarabasiAlbertGenerator, NetworKit::DynamicDGSParser

Public Functions

DynamicGraphSource()

Default constructor

virtual ~DynamicGraphSource() = default
GraphEventProxy *newGraph()

After constructing a DynamicGraphGenerator, call this to set a new a Graph and GraphEventProxy instance and get access to them.

virtual void initializeGraph() = 0

The generator may expect the graph to be in a certain initial state. Call this method first.

virtual void generate() = 0

Perform one generative step - as defined by the implementation.

virtual void generateWhile(std::function<bool(void)> cont)
virtual void generateNodes(count n)

Continue generating until the number of nodes reaches this upper limit.

Parameters:

n[in] umber of nodes

virtual void generateEdges(count m)

Continue generating until the number of edges reaches this upper limit.

Parameters:

m[in] umber of edges

virtual void generateTimeSteps(count t)

Continue generating until the number of time steps reaches this upper limit.

Protected Attributes

GraphEventProxy *Gproxy
Graph *G
bool graphSet
bool graphInitialized