AP_affinity_propagation function

Affinity propagation clustering