Created
January 25, 2013 15:16
-
-
Save AndrewTheTM/4635148 to your computer and use it in GitHub Desktop.
Extending my Path2CSV example to include Selected Links
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
//Check for specific nodes | |
bool output=false; | |
for(int pn=1;pn<prrn-1;pn++){ | |
if(prd.nodes[pn]==9798 && prd.nodes[pn+1]==9750) | |
output=true; | |
} | |
if(output){ | |
of.open(argv[2],iostream::trunc); | |
of << prd.I << ","; | |
for(int pn=0;pn<prrn;pn++){ | |
of << prd.nodes[pn]; | |
if(prd.nodes[pn]!=prd.J) | |
of <<","; | |
} | |
of << endl; | |
of.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment