Nelarius / imnodes

A small, dependency-free node editor for dear imgui
MIT License
2.04k stars 249 forks source link

[Question] Is there a function to retrieve all nodes a node connects to? #165

Open untoldengine opened 2 years ago

untoldengine commented 2 years ago

Hi,

I'm trying to build an Adjacency List from all the nodes. I basically need to know which nodes a node is connected to. Something like this (v represents a node):

v1=[v2 v6] v2=[v4 v5 v6] v3=[v2] v4=[v3] etc...

Is there a function in your API that does this? I could not find any.

If there isn't one, is there a way to get the node id that a link connects to?

thanks