added edge's weight for arr_inc and arr_adj