Learn R Programming

GraphAT (version 1.44.0)

makeClustM: Make an adjacency matrix for a cluster graph

Description

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.

Usage

makeClustM(nvec)

Arguments

nvec
A vector of cluster sizes

Value

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".

References

Balasubramanian, et al. (2004) A graph theoretic approach to integromics - integrating disparate sources of functional genomics data.

See Also

clust2Mat

Examples

Run this code
a <- makeClustM(c(2,3,4))

Run the code above in your browser using DataLab