NEDISS: Network Diffusion and Synchronization Simulator
GraphClasses
CliqueGraph.h
1
//
2
// Created by m4zz31 on 29/10/21.
3
//
4
5
#ifndef CPPPROJCT_CLIQUEGRAPH_H
6
#define CPPPROJCT_CLIQUEGRAPH_H
7
8
9
#include "GeneralGraph.h"
10
11
12
class
CliqueGraphObject
:
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
CliqueGraphObject
(
unsigned
long
num_nodes) :
22
E((
unsigned
long
) ((((
long
) num_nodes) * (
long
) ((
long
) num_nodes - (
long
) 1)) / 2)),
23
N(num_nodes),
24
g(N) {};
25
26
void
build();
27
};
28
29
#endif
//CPPPROJCT_CLIQUEGRAPH_H
CliqueGraphObject
Definition:
CliqueGraph.h:12
CommonGraphObjectClass
Definition:
GeneralGraph.h:139
Generated by
1.9.2