Stabilizing Weighted Graphs