Skip to content
Snippets Groups Projects
Commit e276d5ab authored by Aymane Amessegher's avatar Aymane Amessegher :headphones:
Browse files

version final_a_rendre

parent bf8a0354
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ void afficher_graphe_largeur(pgraphe_t g, int r) {
printf("\n");
}
//recu
void afficher_graphe_profondeur(pgraphe_t g, int r) {
init_couleur_sommet(g);
psommet_t sommet = chercher_sommet(g, r);
......
This diff is collapsed.
File added
......@@ -105,21 +105,17 @@ int main (int argc, char **argv)
printf("donnez le sommet destination : ");
scanf("%d", &y);
// Test de la fonction distance
int dist = distance(g, x, y);
printf("La distance entre %d et %d est : %d\n", x, y, dist);
// Demander à l'utilisateur le sommet pour calculer l'excentricité
int n;
printf("Entrez le sommet pour l'excentricciité : ");
scanf("%d", &n);
// Test de la fonction excentricite
int excentricite_n = excentricite(g, n);
printf("L'excentriccité du sommet %d est : %d\n", n, excentricite_n);
// Test de la fonction diametre
int diam = diametre(g);
printf("Le diamètre du graphe est : %d\n", diam);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment