toto
add weigth to edges
update