computing edge/transition weights done