first
This commit is contained in:
21
structs.h
Normal file
21
structs.h
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// Created by Tiago Batista Cardoso on 2/23/2026.
|
||||
//
|
||||
|
||||
#ifndef GRAPHE_STRUCTS_H
|
||||
#define GRAPHE_STRUCTS_H
|
||||
|
||||
struct node_t {
|
||||
int id; // node id
|
||||
struct node_t **neighbours; // node neighbours
|
||||
};
|
||||
typedef struct node_t node_t;
|
||||
|
||||
struct graph_t {
|
||||
int n; // number of nodes
|
||||
int p; // probability that two nodes from the same group are linked
|
||||
int q; // probability that two nodes from different groups are linked
|
||||
};
|
||||
typedef struct graph_t graph_t;
|
||||
|
||||
#endif //GRAPHE_STRUCTS_H
|
||||
Reference in New Issue
Block a user