Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gridgraph

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

(trigrid, hexagrid or facelayer) The icosahedral grid or facelayer.

...

Arguments passed to the class specific methods.

directed

logical Defaults to FALSE, creating an undirected graph. If TRUE, then the graph will be directed.

distances

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".

Value

The function returns an undirected igraph graph.


icosa

Global Triangular and Penta-Hexagonal Grids Based on Tessellated Icosahedra

v0.10.1
GPL-3
Authors
Adam T. Kocsis [aut, cre]
Initial release
2021-01-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.