-
Notifications
You must be signed in to change notification settings - Fork 0
/
Allvars.h
60 lines (51 loc) · 994 Bytes
/
Allvars.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef ALLVARS_H
#define ALLVARS_H
#include <stdio.h>
#include <math.h>
#include <malloc.h>
#include <time.h>
#include <sys/types.h>
#include <unistd.h>
//=================
// GSL libraries
//=================
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
// #include <gsl/gsl_permutation.h>
//===================
// MACROS
//===================
#define MAXCOL 1000
#define MAXROW 1000
#define MAXSIZE 100
#define NROWS 2
//=======================
// SOME TAGS
//=======================
#define NODES 0
#define NEDGES 1
extern struct network
{
int id;
int *indegree;
int *outdegree;
int Nnodes;
int Ndegree;
int *edges[NROWS];
int Nedges;
float assortativity;
int degree;
int *pos;
int *CIJ;
}Netwk;
extern char temp[256];
extern int Nr,Nc;
extern int Nedges_deleted;
extern int Nrepeated_deleted;
extern int Nloops_deleted;
extern FILE *file;
extern FILE *in;
extern int prm[MAXSIZE];
extern const gsl_rng_type *type;
extern gsl_rng *rand_generator;
#endif