Skip to content

Update make_lattice() / lattice() #994

@szhorvat

Description

@szhorvat

To upgrade from the deprecated igraph_lattice() to the new igraph_square_lattice(), the R interface needs to adapt.

Right now make_lattice has a circular parameter that accepts a single logical. To match the capabilities of igraph_square_lattice(), there should be a parameter that accepts either a single logical, or a vector of logicals, one for each dimension.

It might be good to eventually rename circular to periodic, and to rename make_lattice to make_square_lattice to make room for other types of lattice generators (igraph_triangular_lattice, igraph_hexagonal_lattice, which should also be exposed).

Tasks

Metadata

Metadata

Assignees

Labels

lifecycleDeprecating old APIs

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions