Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

igraphtoGNAR

Converts an igraph to GNAR network


Description

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

Usage

igraphtoGNAR(ig)

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

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

GNAR

Methods for Fitting Network Time Series Models

v1.1.1
GPL-2
Authors
Kathryn Leeming [aut], Guy Nason [aut], Matt Nunes [aut, cre], Marina Knight [ctb]
Initial release
2020-11-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.