Given Graph
graph . edge [ 0 ] . src = 0 ; NEW_LINE graph . edge [ 0 ] . dest = 1 ; NEW_LINE graph . edge [ 0 ] . weight = 1 ; NEW_LINE graph . edge [ 1 ] . src = 1 ; NEW_LINE graph . edge [ 1 ] . dest = 2 ; NEW_LINE graph . edge [ 1 ] . weight = 2 ; NEW_LINE graph . edge [ 2 ] . src = 2 ; NEW_LINE graph . edge [ 2 ] . dest = 3 ; NEW_LINE graph . edge [ 2 ] . weight = 3 ; NEW_LINE graph . edge [ 3 ] . src = 3 ; NEW_LINE graph . edge [ 3 ] . dest = 4 ; NEW_LINE graph . edge [ 3 ] . weight = - 3 ; NEW_LINE graph . edge [ 4 ] . src = 4 ; NEW_LINE graph . edge [ 4 ] . dest = 1 ; NEW_LINE graph . edge [ 4 ] . weight = - 3 ; NEW_LINE