Typically for this I’ve done some wrapper type around a vector storage for the node data (a wish.com arena, if you will). Links are just some abstraction around indices.
It’s kind of annoying to write initially, but it was easier than learning unsafe stuff. To do it correctly & most efficiently though, one would likely need unsafe code.











I really enjoyed the spaceship game Solar Winds, but would occasionally run into a wild bug where rotating the ship to a specific angle would launch it in a negative x direction.
Likewise, I wish another game would work a magic creating/ programming-lite system like Legend/Four Crystals Of Trazere(US). It was way too fun crafting wild magical spells from the basic ingredients.