gridgraph | R Documentation |
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 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.