graph
class graph from the faces of an icosahedral gridThe 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.).
gridgraph(x, ...)# S4 method for trigrid
gridgraph(x, directed = FALSE, distances = FALSE)
# S4 method for hexagrid
gridgraph(x, directed = FALSE, distances = FALSE)
# S4 method for facelayer
gridgraph(x)
The function returns an undirected igraph graph.
(trigrid
, hexagrid
or facelayer
) The icosahedral grid or facelayer
.
Arguments passed to the class specific methods.
logical
Defaults to FALSE
, creating an undirected graph. If TRUE
, then the graph will be directed.
logical
Defaults to FALSE
. If TRUE
, then the distances between the linked faces will be calculated and will be rendered to the edges as "dist"
.