-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpr_check.h
More file actions
29 lines (21 loc) · 684 Bytes
/
pr_check.h
File metadata and controls
29 lines (21 loc) · 684 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
#ifndef __PR_CHECK
#define __PR_CHECK
#include <vector>
#include <list>
#include <map>
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
#include <stack>
#include <iterator>
#include <algorithm>
#include <deque>
#include <queue>
using namespace std;
string getKey(int value, const map<string, int> &map);
void printAdjList(const vector<list<int>> &list, const map<string, int> &map, int dir);
int DFS(int sourceVertex, deque<int> &stack, vector<int> &graySet, vector<int> &blackSet, map<string, int> &map, vector<list<int>> &adjVecForward);
int BFS(int source, int max_length, vector<list<int>> &adjVecForward);
int pr_check(string inputFile);
#endif