code: def compute_affinity_matrix(adjacency_matrix, method='auto', **kwargs):
      
      if method == 'auto':
          method = 'gaussian'
      return Affinity.init(method, **kwargs).affinity_matrix(adjacency_matrix)
docs: Compute the affinity matrix with the given method