forked from mayaanayak/OpenFlightsGraphAlgorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDFS.h
More file actions
26 lines (23 loc) · 621 Bytes
/
DFS.h
File metadata and controls
26 lines (23 loc) · 621 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
#include "makeGraph.h"
#include <iostream>
#include <vector>
#include <map>
#include <string>
#include <queue>
using std::cout;
using std::endl;
using std::map;
using std::queue;
using std::string;
using std::vector;
class DFS {
public:
DFS(vector<vector<double>> graph_, vector<string> vertices_, vector<vector<string>> dset);
bool detect_cycle(vector<string> airports);
private:
string getAirportIdFromName(std::string name);
string getAirportIdFromIndex(int index);
vector<vector<double>> graph;
vector<string> vertices;
vector<vector<string>> dv;
};