modify the metric graph