Learn R Programming

GNAR (version 0.2.9)

fiveNet: Example network

Description

This example GNARnet object is a network containing five vertices connected by five undirected edges, each of length 1.

Usage

fiveNet

Arguments

Format

fiveNet is a GNARnet object containing $edges and $dist. edges is a list of length five, with edges[[i]] containing the vertices that node i is connected to. dist is a list of length five, with dist[[i]] containing the length of the vertices that node i is connected to.

Examples

Run this code
# NOT RUN {
#Plot this network
data(fiveNode)
plot(fiveNet)
# }

Run the code above in your browser using DataLab