Update Affinity_propagation.cs