renamed edge.value to edge.weight