Using NodeIndex to locate node on PointGraph?

I spent a while reading through the docs and examples, but I can’t seem to find any way to use a NodeIndex to find a specific point on a graph.

I noticed that the index of nodes[x] is different from the NodeIndex value, but I can’t find any way to locate a specific node.

Is there a best practice for storing a reference to a PointNode? A world position is fine but it would be nice to move the graph sometimes.


You can’t just store a normal c# reference to the point node object?

I can store a PointNode reference but it makes things like serializing history harder. Mostly I thought I was missing something obvious, as otherwise what use is the exposed NodeIndex?

I’ll try to focus on PointNodes. Thanks for the prompt reply!