affinity graph