Skip to content

make_lattice vertex ordering/naming #175

@otoomet

Description

@otoomet

I want to create a (2D) lattice graph where nodes are names something
like "a11", "a12", "a21", etc where the number correspond to rows and
columns.

I can see that a command

make_lattice(c(3,4))

orders the vertices first according to the first dimension (3) and
thereafter according to the second dimension. This makes it
relatively straightforward to create such names. However:

  • this behavior is not documented. Is it part of API? May I rely on
    it?

  • For >2 dimensions such approach is more complex. Would it be
    possible to add such a naming scheme to the lattice graphs? I
    imagine igraph uses the row/col/... indices internally when creating
    the lattice, and so it is just a question of attaching the
    corresponding names, or maybe even better, the vertex attributes. In this
    case computing the indices from the vertex order seems just
    unnecessary.

Metadata

Metadata

Labels

wishlistFeature request that has not been chosen for implementation yet; vote or comment to prioritize it!

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions