tomatrix {backbone} | R Documentation |
Converts an input graph object to an adjacency matrix and identifies its characteristics
tomatrix(graph)
graph |
A graph object of class "matrix", "sparseMatrix", igraph, matrix or dataframe edgelist, or network |
a list(summary, G) 'summary' is a dataframe containing characteristics of the supplied object 'G' is an adjacency matrix
M <- matrix(rbinom(5*5,1,.5),5,5) test <- backbone:::tomatrix(M)