Some Requirements and Assumptions:
7 1 2 3 0 2 5 7 0 3 6 0 4 1 2 3 6 7 0 7 5 6 0
A sample file for a graph using this format is Digraph1Eof.dat.
NOTE: If inFile is the name of your ifstream object while (!inFile.eof()) can be used to read to the end of the file. End of file isn't detected until it is read so it is a good idea to use a priming read before the loop and then your next read at the end.
7 5 1 2 2 3 2 2 5 7 3 1 6 4 5 1 2 3 6 7 7 2 5 6
A sample file using this format is Digraph1Count.dat.