A function to turn an adjacency matrix for a graph into a graphNEL object.
Usage
mat2UndirG(V, mat)
Arguments
V
A vector of node names
mat
A square symmetric matrix indicating the presence of edges
Value
A graphNEL object.
Details
mat is a square matrix with rows and columns corresponding to nodes in the graph. Entries of "0" indicate the lack of an edge. Since this is making an undirected graph, mat must be symmetric.
References
Balasubramanian, et al. (2004) A graph theoretic approach to integromics - integrating disparate sources of functional genomics data.