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