loggin improved for increaseEdgeWeight