def compute_adjacency_matrix(self, copy=False, **kwargs):
if self.X is None:<EOL><INDENT>raise ValueError(distance_error_msg)<EOL><DEDENT>kwds = self.adjacency_kwds.copy()<EOL>kwds.update(kwargs)<EOL>self.adjacency_matrix = compute_adjacency_matrix(self.X,<EOL>self.adjacency_method,<EOL>**kwds)<EOL>if copy:<EOL><INDENT>return self.adjacency_matrix.copy()<EOL><DEDENT>else:<EOL><INDENT>return self.adjacency_matrix<EOL><DEDENT>
This function will compute the adjacency matrix.
In order to acquire the existing adjacency matrix use
self.adjacency_matrix as comptute_adjacency_matrix() will re-compute
the adjacency matrix.

Parameters
----------
copy : boolean, whether to return a copied version of the adjacency matrix
**kwargs : see distance.py docmuentation for arguments for each method.

Returns
-------
self.adjacency_matrix : sparse matrix (N_obs, N_obs)
    Non explicit 0.0 values should be considered not connected.