powered by
Converts an 'igraph' to the GNARnet form for use as an input to GNAR functions.
GNARnet
igraphtoGNAR(ig)
igraphtoGNAR returns a GNARnet: a list with elements $edges and $dist.
igraphtoGNAR
$edges
$dist
an 'igraph' object.
The values in the $dist list are the reciprocal of the values from the weighted adjacency matrix.
#Convert fiveNet to igraph and back again igraphtoGNAR(GNARtoigraph(fiveNet))
Run the code above in your browser using DataLab