NEDISS: Network Diffusion and Synchronization Simulator
GraphClasses
RingGraph.h
1
//
2
// Created by m4zz31 on 31/10/21.
3
//
4
5
#ifndef CPPPROJCT_RINGGRAPH_H
6
#define CPPPROJCT_RINGGRAPH_H
7
8
#include "GeneralGraph.h"
9
10
11
12
class
RingGraphObject
:
public
CommonGraphObjectClass
{
13
public
:
14
unsigned
long
N;
15
unsigned
long
E;
16
Graph g;
17
18
// TODO: move this to CommonGraphObjectClass
19
unsigned
long
Procs = num_processes(boost::graph::distributed::mpi_process_group());
20
21
RingGraphObject
(
unsigned
long
num_nodes) :
22
E(num_nodes),
// E =/= 2 * N as it is bidirectional ;-) so it's just N
23
N(num_nodes),
24
g(N) {};
25
void
build();
// Ring constructor
26
};
27
28
29
30
31
32
33
34
#endif
//CPPPROJCT_RINGGRAPH_H
CommonGraphObjectClass
Definition:
GeneralGraph.h:139
RingGraphObject
Definition:
RingGraph.h:12
Generated by
1.9.2