
Create or instantiate an graph class graph from the faces of an icosahedral grid
Source: R/grid-graphs.R, R/data-facelayer-graphs.R
gridgraph.RdThe function can be applied to both grids and to facelayer-class object of logical values. The resulting graph will have the characteristics of the original grid (directed/undirected etc.).
Usage
gridgraph(x, ...)
# S4 method for class 'trigrid'
gridgraph(x, directed = FALSE, distances = FALSE)
# S4 method for class 'hexagrid'
gridgraph(x, directed = FALSE, distances = FALSE)
# S4 method for class 'facelayer'
gridgraph(x)Arguments
- x
(
trigrid,hexagridorfacelayer) The icosahedral grid orfacelayer.- ...
Arguments passed to the class specific methods.
- directed
logicalDefaults toFALSE, creating an undirected graph. IfTRUE, then the graph will be directed.- distances
logicalDefaults toFALSE. IfTRUE, then the distances between the linked faces will be calculated and will be rendered to the edges as"dist".