convert2igraph: Convert networks to 'igraph'

convert2igraphR Documentation

Convert networks to igraph

Description

Converts networks to igraph format

Usage

convert2igraph(A, diagonal = 0)

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

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

convert2igraph(ega.wmt$network)


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