Guest User

Untitled

a guest
Jun 19th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.91 KB | None | 0 0
  1. /*
  2.  * File:   main.cpp
  3.  * Authoren: The Speedfisting Crew
  4.  *
  5.  * Created on Fistersday, 1 3 3 7 , 13:37
  6.  * made in Hanau,Hessen,Germany
  7.  */
  8.  
  9. #include <cstdlib>
  10. #include "UltDiGraph.h"
  11.  
  12. using namespace std;
  13.  
  14. /*
  15.  *
  16.  */
  17. int main(int argc, char** argv) {
  18.     UltDiGraph u;
  19.  
  20.  
  21.     u.InsertVertex("0");
  22.     u.InsertVertex("1");
  23.     u.InsertVertex("2");
  24.     u.InsertVertex("3");
  25.     u.InsertVertex("4");
  26.     u.InsertVertex("5");
  27.     u.InsertArc(0,1,5);
  28.     u.InsertArc(0,3,5);
  29.     u.InsertArc(0,2,5);
  30.     u.InsertArc(1,3,5);
  31.     u.InsertArc(1,4,5);
  32.     u.InsertArc(2,3,50);
  33.     u.InsertArc(0,4,50);
  34.     u.InsertArc(4,5,50);
  35.  
  36.     u.backtrackingAlleLoesungen(0,3);
  37.  
  38.  
  39.     u.printAllBackTrackWege();
  40.  
  41.  
  42.     cout<<endl;
  43.  
  44.     u.printBackTrackingMinWeg();
  45.  
  46.  
  47. //    u.PrintAdjMatrix();
  48. //
  49. //    u.PrintVerteces();
  50. //
  51. //    u.Dijkstra(1,5);
  52. //
  53. //    u.PrintVerteces();
  54.  
  55.    
  56.    
  57.  
  58.     return 0;
  59. }
Add Comment
Please, Sign In to add comment