Advertisement
Ruggeri96

Untitled

Jan 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.00 KB | None | 0 0
  1. // Graph.h
  2. #ifndef GRAPH_H_INCLUDED
  3. #define GRAPH_H_INCLUDED
  4.  
  5. #include "Edge.h"
  6. #include "ST.h"
  7. // Seleziono quale versione includere
  8. #include "Item.h"
  9.  
  10. typedef struct graph *Graph;
  11.  
  12. Graph GRAPHinit(int V);
  13. void GRAPHfree(Graph G);
  14. Graph GRAPHload(FILE* fin);
  15. void GRAPHstore(Graph G, FILE* fout);
  16. int GRAPHgetIndex(Graph G, char* label);
  17. void GRAPHinsertE(Graph G, Edge e);
  18. void GRAPHremoveE(Graph G, Edge e);
  19. void GRAPHedges(Graph G, Edge* a);
  20. int GRAPHpath(Graph G, int id1, int id2);
  21. int GRAPHpathH(Graph G, int id1, int id2);
  22. void GRAPHbfs(Graph G, int id);
  23. void GRAPHdfs(Graph G, int id);
  24. int GRAPHcc(Graph G);  // non orientati
  25. int GRAPHscc(Graph G); // orientati
  26. void GRAPHmstK(Graph G);
  27. void GRAPHmstP(Graph G);
  28. void GRAPHspD(Graph G);
  29. void GRAPHspBF(Graph G);
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. #endif // GRAPH_H_INCLUDED
  41.  
  42. // Edge.h
  43. #ifndef EDGE_H_INCLUDED
  44. #define EDGE_H_INCLUDED
  45.  
  46. typedef struct {
  47.     int v, w, wt;
  48. } Edge;
  49.  
  50. Edge EDGEcreate(int v, int w, int wt);
  51.  
  52.  
  53. #endif // EDGE_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement