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

#include <DynamicDGSParser.h>

Public Member Functions

 DynamicDGSParser (std::string path)
 
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...
 
void evaluateClusterings (const std::string path, const Partition &clustering)
 
- 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

bool graphInitialized
 true if initializeGraph has been called and graph has been properly initialized More...
 
std::unordered_map
< std::string, node
nodeNames
 
std::vector< std::string > nodeDates
 
std::ifstream dgsFile
 
std::vector< std::vector
< std::string > > 
nodeCategories
 
- 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::DynamicDGSParser::DynamicDGSParser ( std::string  path)

Member Function Documentation

void NetworKit::DynamicDGSParser::evaluateClusterings ( const std::string  path,
const Partition clustering 
)
void NetworKit::DynamicDGSParser::generate ( )
virtual

Perform one generative step - as defined by the implementation.

Example: category="cond-mat.stat-mech, q-fin.ST"

Implements NetworKit::DynamicGraphSource.

void NetworKit::DynamicDGSParser::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

std::ifstream NetworKit::DynamicDGSParser::dgsFile
protected
bool NetworKit::DynamicDGSParser::graphInitialized
protected

true if initializeGraph has been called and graph has been properly initialized

std::vector<std::vector<std::string> > NetworKit::DynamicDGSParser::nodeCategories
protected
std::vector<std::string> NetworKit::DynamicDGSParser::nodeDates
protected
std::unordered_map<std::string, node> NetworKit::DynamicDGSParser::nodeNames
protected

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