## 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 TRUE entries indicate the connections (connection between i-th vertex and j-th vertex if the entry is located at row i and column j)

### 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)
)