concomFromMatAdj {concom} | R Documentation |
Connected components of an undirected graph from its adjacency matrix.
concomFromMatAdj(M)
M |
adjacency matrix; it must be a square symmetric matrix with
numeric or Boolean entries, whose non-zero or |
The output is the same as the one of the concom
function.
matAdj <- rbind(
c(0, 1, 0, 0),
c(1, 0, 0, 0),
c(0, 0, 0, 0),
c(0, 0, 0, 1)
)
concomFromMatAdj(matAdj)