adding weight from edge in distance
ncessary for output, should have been commited earlyer !
adding weight and confidence in distance evaluation