Learn R Programming

icosa (version 0.11.1)

newgraph: Add an igraph object to a predefined slot in an icosahedral grid

Description

Add an igraph object to a predefined slot in an icosahedral grid

Usage

newgraph(gridObj, ...)

# S4 method for trigrid newgraph(gridObj, ...)

Value

A new (trigrid or hexagrid) object with the recalculated graph.

Arguments

gridObj

(trigrid, hexagrid) An icosahedral grid.

...

Arguments passed to the gridgraph function.

Examples

Run this code
#create a grid
g<-trigrid(4, graph=FALSE)
g<-newgraph(g)

Run the code above in your browser using DataLab