igraph2matrix | R Documentation |
Converts network to matrix
igraph2matrix(igraph_network, diagonal = 0)
igraph_network |
network object |
diagonal |
Numeric (length = 1).
Value to be placed on the diagonal of |
Returns a network in the format
Hudson Golino <hfg9s at virginia.edu> & Alexander P. Christensen <alexander.christensen at Vanderbilt.Edu>
# Convert network to {igraph}
igraph_network <- convert2igraph(ega.wmt$network)
# Convert network back to matrix
igraph2matrix(igraph_network)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.