powered by
Converts network to matrix
igraph2matrix(igraph_network, diagonal = 0)
Returns a network in the format
network object
Numeric (length = 1). Value to be placed on the diagonal of network. Defaults to 0
network
0
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)
Run the code above in your browser using DataLab