Moving graph information into CSR format
<p>I have a vector of edges, trying to turn this into a CSR format, hit a brick wall in my thought process of loops, I know I need to traverse through object and pull out the numbers that are not '9999' I am than putting these values into an array call graphWeights.  So what I want to pull from this is 16,2,3,5,3,12,7,10,4,5 and have that in order in my graphWeights array.  </p>

<pre><code>void createCsrArrays() {
    //Note: I already have pointers for these have defined already above.
    graphWeights = new int [numEdges];
    columns = new int [numEdges];
    rows = new int[numNodes];
    smallestWeight = new int[];

    // 2-D array:
    // 0         16        99999999  2         3
    // 99999999  0         2         99999999  99999999
    // 99999999  3         0         99999999  99999999
    // 99999999  12        99999999  0         7
    // 99999999  10        4         5         0


    //CSR format, it look like this:
    //graphWeights: 16 2  3  5  3  12 7 10 4  5
    //columns:      1  3  4  2  1  1  4 1  2  3
    //row:          0  3  4  5  7  10


    //These two lines of code will help with the rows array
    for(int i = 0; i &lt; graphEdge, i++) //this is the begining of my for loop which I got      stuck on
}
</code></pre>
