docs: def set_adjacency_matrix(self, adjacency_mat):
          """
          Parameters
          ----------
          adjacency_mat : sparse matrix (N_obs, N_obs)
              The adjacency matrix to input.
          """
          adjacency_mat = check_array(adjacency_mat, accept_sparse=sparse_formats)
          if adjacency_mat.shape[0] != adjacency_mat.shape[1]:
              raise ValueError("adjacency matrix is not square")
          self.adjacency_matrix = adjacency_mat