adj2igraph | R Documentation |
Convert an adjacency matrix (ie - from the sparseiCov
function) to an igraph object
adj2igraph(
Adj,
rmEmptyNodes = FALSE,
diag = FALSE,
edge.attr = list(),
vertex.attr = list(name = 1:ncol(Adj))
)
Adj |
an Adjacency matrix |
rmEmptyNodes |
should unconnected nodes be removed from the graph |
diag |
Flag to include self-loops (diagonal of adjacency matrix) |
edge.attr |
named list of attributes for graph edges |
vertex.attr |
named list of attributes for graph vertices |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.