Computes connected component membership (1..K) and isolates (degree 0) from an undirected adjacency matrix. Intended for ICAR centering per component.
components_from_adjacency(A)A list with:
Integer vector of length n giving component id (1..K).
Logical vector of length n, TRUE if degree 0.
Square adjacency matrix (base matrix or `Matrix` sparse).