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