Creating directed weighted edges
v [ 0 ] . Add_child ( 1 , 1 ) ; NEW_LINE v [ 0 ] . Add_child ( 2 , 4 ) ; NEW_LINE v [ 1 ] . Add_child ( 2 , 2 ) ; NEW_LINE v [ 1 ] . Add_child ( 3 , 6 ) ; NEW_LINE v [ 2 ] . Add_child ( 3 , 3 ) ; NEW_LINE path = [ 0 for i in range ( len ( v ) ) ] ; NEW_LINE dist = dijkstraDist ( v , s , path ) ; NEW_LINE