21 lines
589 B
C
21 lines
589 B
C
//
|
|
// 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
|