Calculate number of islands (distinct connected groups) of CAR adjacency matrix.
CAR_calcNumIslands(adj, num)
vector of indicies of the adjacent locations (neighbors) of each spatial location. This is a sparse representation of the full adjacency matrix.
vector giving the number of neighbors of each spatial location, with length equal to the total number of locations.