igraphtoGNAR | R Documentation |
Converts an 'igraph' to the GNARnet
form for use as an input to GNAR functions.
igraphtoGNAR(ig)
ig |
an 'igraph' object. |
The values in the $dist
list are the reciprocal of the values from the weighted adjacency matrix.
igraphtoGNAR
returns a GNARnet
: a list with elements $edges
and $dist
.
#Convert fiveNet to igraph and back again
igraphtoGNAR(GNARtoigraph(fiveNet))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.