Closed thomasrobiglio closed 4 months ago
This is a good idea. I actually already have some code to do this. I'll dig it up when I have time.
Thanks @maximelucas actually I also have the code, when I have a bit more time I will do a PR
Update: I think it's better to just have a recipe for this (the are just minor twitches from the functions we already have). I will do a PR soon
I have noticed that our functions
flag_complex
andflag_complex_d2
return errors when giving as imput graph a lattice. Example:This is because the nodes in the
nx
lattice are stored as tuples (the cordinates of the lattice site):If we are interested I can work on a feature to flag lattices and/or generate lattices with this flavor (we only have ring lattices for now). Let me know what you think and how you think whis should be positioned (do we want to add options to the already existing functions? or build new ones to make explicit the lattice aspect?).
BONUS: networkX gives us the nodes' positions for free so we can have cool visualizations like this: