igraph2matrix {EGAnet}R Documentation

Convert igraph network to matrix

Description

Converts igraph network to matrix

Usage

igraph2matrix(igraph_network, diagonal = 0)

Arguments

igraph_network

igraph network object

diagonal

Numeric (length = 1). Value to be placed on the diagonal of network. Defaults to 0

Value

Returns a network in the igraph format

Author(s)

Hudson Golino <hfg9s at virginia.edu> & Alexander P. Christensen <alexander.christensen at Vanderbilt.Edu>

Examples

# Convert network to {igraph}
igraph_network <- convert2igraph(ega.wmt$network)

# Convert network back to matrix
igraph2matrix(igraph_network)


[Package EGAnet version 2.0.6 Index]