Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TP3 ALGO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aymane Amessegher
TP3 ALGO
Commits
e276d5ab
Commit
e276d5ab
authored
10 months ago
by
Aymane Amessegher
Browse files
Options
Downloads
Patches
Plain Diff
version final_a_rendre
parent
bf8a0354
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
graphe.c
+1
-1
1 addition, 1 deletion
graphe.c
rendu.odt
+0
-0
0 additions, 0 deletions
rendu.odt
rendu_tp3_algo.odt
+755
-0
755 additions, 0 deletions
rendu_tp3_algo.odt
rendu_tp3_algo.pdf
+0
-0
0 additions, 0 deletions
rendu_tp3_algo.pdf
test_graphe.c
+1
-5
1 addition, 5 deletions
test_graphe.c
with
757 additions
and
6 deletions
graphe.c
+
1
−
1
View file @
e276d5ab
...
...
@@ -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.
Click to expand it.
rendu.odt
0 → 100644
+
0
−
0
View file @
e276d5ab
This diff is collapsed.
Click to expand it.
rendu_tp3_algo.odt
+
755
−
0
View file @
e276d5ab
This diff is collapsed.
Click to expand it.
rendu_tp3_algo.pdf
0 → 100644
+
0
−
0
View file @
e276d5ab
File added
This diff is collapsed.
Click to expand it.
test_graphe.c
+
1
−
5
View file @
e276d5ab
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment