structures definies
This commit is contained in:
parent
6b160ae36c
commit
6dc07896bf
13
matcom.h
Normal file
13
matcom.h
Normal file
@ -0,0 +1,13 @@
|
||||
typedef char fix_str[256];
|
||||
|
||||
struct edge {
|
||||
int i; // noeud de depart
|
||||
int j; // noeud d'arrivé
|
||||
};
|
||||
|
||||
struct graph_mco {
|
||||
int nbs; // nombre de sommets
|
||||
int nba; // nombre d'aretes
|
||||
fix_str *func; // noms de fonction
|
||||
struct edge *vec; // vecteur d'aretes
|
||||
};
|
16
vec.h
Normal file
16
vec.h
Normal file
@ -0,0 +1,16 @@
|
||||
typedef char fix_str[256];
|
||||
typedef struct node *nodept;
|
||||
typedef struct nodes graph_vec;
|
||||
|
||||
struct nodes {
|
||||
int n;
|
||||
int cap;
|
||||
fix_str *func; // noms de fonctions
|
||||
nodept *node;
|
||||
};
|
||||
|
||||
struct node {
|
||||
int num; // le numero de noeud
|
||||
int nbs; // nombre de successeurs
|
||||
struct node **succ; // les successeurs
|
||||
};
|
Loading…
Reference in New Issue
Block a user