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

#include <DynamicBarabasiAlbertGenerator.h>

Public Member Functions

 DynamicBarabasiAlbertGenerator (count k=2)
 
virtual void initializeGraph ()
 The generator may expect the graph to be in a certain initial state. More...
 
virtual void generate ()
 Perform one generative step - as defined by the implementation. More...
 
- Public Member Functions inherited from NetworKit::DynamicGraphSource
 DynamicGraphSource ()
 Default constructor. More...
 
virtual ~DynamicGraphSource ()=default
 
GraphEventProxynewGraph ()
 After constructing a DynamicGraphGenerator, call this to set a new a Graph and GraphEventProxy instance and get access to them. More...
 
virtual void generateWhile (std::function< bool(void)> cont)
 
virtual void generateNodes (count n)
 Continue generating until the number of nodes reaches this upper limit. More...
 
virtual void generateEdges (count m)
 Continue generating until the number of edges reaches this upper limit. More...
 
virtual void generateTimeSteps (count t)
 Continue generating until the number of time steps reaches this upper limit. More...
 

Protected Attributes

count k
 parameter of the BA model: number of edges per new node More...
 
count degSum
 degree sum of current graph More...
 
- Protected Attributes inherited from NetworKit::DynamicGraphSource
GraphEventProxyGproxy
 receives events produced by the generator and forwards them More...
 
GraphG
 
bool graphSet
 true if newGraph has been called and graph and proxy instances are properly set More...
 
bool graphInitialized
 true if initializeGraph has been called and graph has been properly initialized More...
 

Constructor & Destructor Documentation

NetworKit::DynamicBarabasiAlbertGenerator::DynamicBarabasiAlbertGenerator ( count  k = 2)

Member Function Documentation

void NetworKit::DynamicBarabasiAlbertGenerator::generate ( )
virtual

Perform one generative step - as defined by the implementation.

Implements NetworKit::DynamicGraphSource.

void NetworKit::DynamicBarabasiAlbertGenerator::initializeGraph ( )
virtual

The generator may expect the graph to be in a certain initial state.

Call this method first.

Implements NetworKit::DynamicGraphSource.

Member Data Documentation

count NetworKit::DynamicBarabasiAlbertGenerator::degSum
protected

degree sum of current graph

count NetworKit::DynamicBarabasiAlbertGenerator::k
protected

parameter of the BA model: number of edges per new node


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