scanpy.Neighbors.transitions_sym

property Neighbors.transitions_sym: Optional[Union[numpy.ndarray, scipy.sparse._csr.csr_matrix]]

Symmetrized transition matrix (sparse matrix).

Is conjugate to the transition matrix via:

self.transitions_sym = self.Z /  self.transitions * self.Z

where self.Z is the diagonal matrix storing the normalization of the underlying kernel matrix.

Return type

Union[ndarray, csr_matrix, None]