This commit is contained in:
enx01
2026-02-24 10:02:08 +01:00
commit f804da7d88
9 changed files with 412 additions and 0 deletions

21
structs.h Normal file
View 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