maxConnectedSet(M): X___.___.___.___X . . . : $\mid$ : . . X___.___!___.___.___X : $\mid$ $\mid$ : . X___.___.___!___X___X ! : $\mid$ $\mid$ $\mid$ : . X___.___.___!___X___X ! : $\mid$ $\mid$ : . . . . X . . ! : $\mid$ $\mid$ : . . X___.___!___.___.___X : $\mid$ : . . . X___X . . . Thus, in this matrix observations of rows 1, 5 and 7 or colums 1, 4 and 5 form one connected set. Likewise observations of rows 2 and 6 (or columns 3 and 8) and rows 3 and 4 (or columns 2, 6 and 7) form also connected sets, respectively.
connectedSets
maxConnectedSetdata(Searle)
maxConnectedSet(Searle)Run the code above in your browser using DataLab