correct error in compute_connectivity and validate against michael matrices
leave only one validated method to compute connectivity