def compute_affinity_matrix(adjacency_matrix, method='<STR_LIT>', **kwargs):
if method == '<STR_LIT>':<EOL><INDENT>method = '<STR_LIT>'<EOL><DEDENT>return Affinity.init(method, **kwargs).affinity_matrix(adjacency_matrix)<EOL>
Compute the affinity matrix with the given method