Fix graph edges update