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

generateGridNetwork

Generates a grid network.


Description

Generates a grid network.

Usage

generateGridNetwork(n.points.per.dim = NULL, n.dim = 2L, lower = 0,
  upper = 100, name = NULL)

Arguments

n.points.per.dim

[integer(1)]
Number of points in each dimension.

n.dim

[integer(1)]
Number of dimensions. Default ist 2.

lower

[numeric(1)]
Lower box constaint for cube. Default is 0.

upper

[numeric(1)]
Upper box constaint for cube. Default is 100.

name

[character(1) | NULL]
Optional name for the generated network. Default is NULL. In this case a random name is generated.

Value

[Network]

Note

Grid networks with depots are not supported at the moment.

Examples

x = generateGridNetwork(n.points.per.dim = 10L, upper = 50)

netgen

Network Generator for Combinatorial Graph Problems

v1.3.2
BSD_3_clause + file LICENSE
Authors
Jakob Bossek [aut, cre]
Initial release
2020-01-08

We don't support your browser anymore

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