-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathalgo_parcours.h
More file actions
33 lines (29 loc) · 986 Bytes
/
algo_parcours.h
File metadata and controls
33 lines (29 loc) · 986 Bytes
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
#ifndef __ALGO_PARCOURS_H__
#define __ALGO_PARCOURS_H__
#include "graphe.h"
typedef enum
{
blanc, gris, noir
} couleur_t;
typedef struct sommet
{
couleur_t couleur;
int noeud;
int distance;
int pere;
struct sommet *PointeurPere;
int key;
} sommet_t;
void parcoursLargeur(graphe_t *graph, int sommetOrigine, int sommetFin);
void visiter_PP(int u, graphe_t *graph, sommet_t *sommet, int *date, int *d,
int *f);
void parcoursProfondeurRecursif(graphe_t *graph);
int genererAcpmKruskal(graphe_t *graph, arete_t **aretesRetenues);
void afficherAcpmKruskal(arete_t *tabAretesRetenues, int longueurTabArete);
void genererAcpmPrim(graphe_t *graph, sommet_t **tab, int sommetOrigine);
void afficherAcpmPrim(sommet_t **tab, int longueurTab);
sommet_t* bellman_ford(graphe_t *graphe, int sommetOrigine);
void afficherBellman_ford(graphe_t *graph, sommet_t **tab);
sommet_t* dijkstra(graphe_t *graphe, int sommetOrigine);
void afficherDijkstra(graphe_t *graph, sommet_t **tab);
#endif