Learn R Programming

EGAnet (version 1.2.3)

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