diff --git a/TP/fonctionVisuelGraphe.c b/TP/fonctionVisuelGraphe.c new file mode 100644 index 0000000..e088802 --- /dev/null +++ b/TP/fonctionVisuelGraphe.c @@ -0,0 +1,41 @@ +#include +#include + + +void visuelGraphe(graphe g){ + int taille=1000; + int origine=taille/2; + int distance=4*origine/5; + int tailleVert=taille/20; + InitialiserGraphique(); + CreerFenetre(10,10,taille,taille); + + int i,j; + int x,y; + char* nV=malloc(2); + *nV='1'; + *(nV+1)='\0'; + int* cX=calloc(g.ordre,sizeof(int)); + int* cY=calloc(g.ordre,sizeof(int)); + for(i=0;i +#include + + +void visuelGraphe(graphe g){ + int taille=1000; + int origine=taille/2; + int distance=4*origine/5; + int tailleVert=taille/20; + InitialiserGraphique(); + CreerFenetre(10,10,taille,taille); + + int i,j; + int x,y; + char* nV=malloc(2); + *nV='1'; + *(nV+1)='\0'; + int* cX=calloc(g.ordre,sizeof(int)); + int* cY=calloc(g.ordre,sizeof(int)); + for(i=0;i