Last active
September 12, 2019 21:46
-
-
Save sazid/e8044c3709a705c5c04629444d0b91bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Holds the graph | |
map<char, vector<char>> graph; | |
// Status of each node - UNVISITED, VISITING, VISITED | |
map<char, int> status; | |
// This will denote whether the graph has cycles | |
bool hasCycles = false; | |
// Status codes | |
const int UNVISITED = 0; | |
const int VISITING = 1; | |
const int VISITED = 2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment