igraph2matrix: Convert " network to matrix

igraph2matrixR Documentation

Convert network to matrix

Description

Converts network to matrix

Usage

igraph2matrix(igraph_network, diagonal = 0)

Arguments

igraph_network

network object

diagonal

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

Value

Returns a network in the 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)


hfgolino/EGA documentation built on Nov. 11, 2024, 9:28 p.m.