vasturiano / 3d-force-graph-vr

3D force-directed graph component in VR
https://vasturiano.github.io/3d-force-graph-vr/example/large-graph/
MIT License
214 stars 51 forks source link

Differentiating same name nodes #36

Closed malani-art closed 2 years ago

malani-art commented 2 years ago

Hi,

I'm not sure if this already exists but I'm making a family tree using this 3d force graph and I have family members with the same names. Because of that, the node links connect the wrong names together, confusing them. Is there a way to differentiate same name nodes? If not, adding a way to do that would be great!

Thanks

vasturiano commented 2 years ago

@malani-art you should be using unique ids for the nodes, not names that can be repeated. Each node should have its own unique identifier attribute that you should use to reference from the links structure.