makeClustM {GraphAT} | R Documentation |
This function takes a vector of cluster sizes and returns an adjacency matrix for a graph in which edges connect nodes if they are members of the same cluster.
makeClustM(nvec)
nvec |
A vector of cluster sizes |
A square adjacency matrix with the number of rows and columns equal to the sum of nvec. An entry of "1" in the ith row and jth column indicates that node i and node j are members of the same cluster. All other entries are "0".
Denise Scholtens
Balasubramanian, et al. (2004) A graph theoretic approach to integromics - integrating disparate sources of functional genomics data.
a <- makeClustM(c(2,3,4))