Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store lattice positions as node attributes #623

Open
nwlandry opened this issue Nov 18, 2024 · 1 comment
Open

Store lattice positions as node attributes #623

nwlandry opened this issue Nov 18, 2024 · 1 comment
Labels
improve Make an existing feature better

Comments

@nwlandry
Copy link
Collaborator

Related to #179.

When generating triangular lattices, it should be possible to store the lattice positions as attributes for ease of plotting. This should be an optional argument in the lattice generator functions such as ring_lattice.

xgi.ring_lattice(n, d, k, l, store_pos=True)
@maximelucas
Copy link
Collaborator

We could follow the NetworkX terminology and call that argument with_positions

@maximelucas maximelucas added the improve Make an existing feature better label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improve Make an existing feature better
Projects
None yet
Development

No branches or pull requests

2 participants