igraphtoGNAR: Converts an igraph to GNAR network

Description Usage Arguments Details Value Examples

View source: R/igraphtoGNAR.R

Description

Converts an 'igraph' to the GNARnet form for use as an input to GNAR functions.

Usage

1

Arguments

ig

an 'igraph' object.

Details

The values in the $dist list are the reciprocal of the values from the weighted adjacency matrix.

Value

igraphtoGNAR returns a GNARnet: a list with elements $edges and $dist.

Examples

1
2
#Convert fiveNet to igraph and back again
igraphtoGNAR(GNARtoigraph(fiveNet))

nunesmatt/GNAR documentation built on Oct. 29, 2019, 4:25 p.m.