Changed how updated edge weights are saved.