-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSource.cpp
More file actions
executable file
·37 lines (29 loc) · 795 Bytes
/
Source.cpp
File metadata and controls
executable file
·37 lines (29 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
Author: Ali Haider
Email: alihaider1@outlook.com
*/
#include "_src/_include/Map.h"
#include "_src/_include/ProactiveRouting.h"
//#include "_src/_include/ReactiveRouting.h"
//#include "_src/_include/HierarchicalRouting.h"
//#include "_src/_include/MLRouting.h"
#include <string>
int main()
{
// Ali's calls
//road,intersection, no of cars information
std::string f = "_src/_include/_data/manhattan_actual.csv";
ProactiveRouting<int> PR(f);
// calculate shortest path from node u=1
PR.calculateDijkstrasSP(61);
PR.printAdjacencyList();
//PR.printAdjacencyMatrix();
//PR.printMap();
/*David's calls
std::string f = "../../traffic-management/_src/_include/_data/manhattan.csv";
ReactiveRouting<int> RR(f);
RR.calculateSP(0, 99);
RR.printAdjacencyMatrix();
*/
return 0;
}