Create or instantiate an graph class graph from the faces of an icosahedral grid
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.).
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)
x |
( |
... |
Arguments passed to the class specific methods. |
directed |
|
distances |
|
The function returns an undirected igraph graph.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.