I have a symmetric adjacency matrix with binary values (0, 1) in R. Let's say:
library(igraph)
g <- erdos.renyi.game(10, 10, type="gnm", directed = FALSE, loops = TRUE)
m <- get.adjacency(g)
I need to do spectrum analysis of this graph, by producing a list of sublists of eigenvalues with their respective multiplicities. I am aware of functions like eigen(m)
. This previous question used it, but did not explain any automatic way for counting multiplicities: