removed console outputs
fixed initial edge weight is 0.0