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

ndarray | csr_matrix | NoneUnion[ndarray, csr_matrix, None]