-
-
Notifications
You must be signed in to change notification settings - Fork 205
make_lattice vertex ordering/naming #175
Copy link
Copy link
Open
Labels
wishlistFeature request that has not been chosen for implementation yet; vote or comment to prioritize it!Feature request that has not been chosen for implementation yet; vote or comment to prioritize it!
Milestone
Metadata
Metadata
Assignees
Labels
wishlistFeature request that has not been chosen for implementation yet; vote or comment to prioritize it!Feature request that has not been chosen for implementation yet; vote or comment to prioritize it!
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
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.