question: protected void populate ( Iterator < EdgeInfo > edges ) { info = new EdgeInfo [ numVertices ] [ numVertices ] ; while ( edges . hasNext ( ) ) { EdgeInfo ei = edges . next ( ) ; ei . flow = 0 ; info [ ei . start ] [ ei . end ] = ei ; } }
target:  Helper method to populate edges. Useful for subclasses as well. Note that this allocates the matrix storage so it effectively replaces the entire edge structure found in the graph. Be careful when using this!