Created
August 22, 2009 20:09
-
-
Save mjbommar/172966 to your computer and use it in GitHub Desktop.
This file contains 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
/* V is the set<string> of vertices. | |
E is the set<int> of edges. | |
vA and vB are the vertex labels for the current edge. | |
*/ | |
E.push_back(pair<int, int> (distance(V.begin(), (V.insert(vA)).first), | |
distance(V.begin(), (V.insert(vB)).first)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment