gridgraph {icosa} | R Documentation |
Create or instantiate an graph
class graph from the faces of an icosahedral grid
Description
The 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 signature 'trigrid'
gridgraph(x, directed = FALSE, distances = FALSE)
## S4 method for signature 'hexagrid'
gridgraph(x, directed = FALSE, distances = FALSE)
## S4 method for signature 'facelayer'
gridgraph(x)
Arguments
x |
( |
... |
Arguments passed to the class specific methods. |
directed |
|
distances |
|
Value
The function returns an undirected igraph graph.
[Package icosa version 0.11.0 Index]