GNARtoigraph {GNAR} | R Documentation |
Converts a GNAR network to a weighted igraph object
Description
Takes an input network and neighbour stage and returns it in igraph form.
Usage
GNARtoigraph(net=GNAR::fiveNet, stage=1, normalise=FALSE)
Arguments
net |
a GNARnet object containing |
stage |
the neighbour set that the adjacency matrix is created for. |
normalise |
whether to normalise each to non-zero row to have sum one. |
Details
With normalisation this is a non-invertible transform. See NofNeighbours for neighbour set definition. See is.GNARnet for GNARnet
object information and example construction.
Value
GNARtoigraph
returns an 'igraph' object with weights as the inverse distances of the input network.
Examples
#fiveNet as an igraph object
GNARtoigraph()
[Package GNAR version 1.1.3 Index]