NEDISS: Network Diffusion and Synchronization Simulator
ScaleFreeGraph.h
1//
2// Created by m4zz31 on 28/11/21.
3//
4
5#ifndef CPPPROJCT_SCALEFREEGRAPH_H
6#define CPPPROJCT_SCALEFREEGRAPH_H
7
8#include "GeneralGraph.h"
9#include <boost/graph/plod_generator.hpp>
10
11
12// TODO: test this class
14public:
15 unsigned long N;
16 unsigned long E;
17 Graph g;
18
19 // Uniques to this Graph :-)
20 typedef boost::plod_iterator<boost::minstd_rand, Graph> SFGen;
21 boost::minstd_rand gen;
22 double alpha,beta;
23
24 // TODO: move this to CommonGraphObjectClass
25 unsigned long Procs = num_processes(boost::graph::distributed::mpi_process_group());
26
27 ScaleFreeGraphObject(unsigned long num_nodes, double A, double B) :
28 alpha(A),
29 beta(B),
30 N(num_nodes),
31 g(SFGen(gen, num_nodes, A, B, false), SFGen(), num_nodes) {};
32
33 // TODO: move this to CommonGraphObjectClass
34 void build(){};
35};
36
37
38#endif //CPPPROJCT_SCALEFREEGRAPH_H
Definition: GeneralGraph.h:139
Definition: ScaleFreeGraph.h:13