Learn R Programming

EGAnet (version 2.0.8)

convert2igraph: Convert networks to igraph

Description

Converts networks to igraph format

Usage

convert2igraph(A, diagonal = 0)

Value

Returns a network in the igraph format

Arguments

A

Matrix or data frame. N x N matrix where N is the number of nodes

diagonal

Numeric. Value to be placed on the diagonal of A. Defaults to 0

Author

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

Examples

Run this code
convert2igraph(ega.wmt$network)

Run the code above in your browser using DataLab