You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an edge is added, non-existing nodes are added automatically.
However, sometimes the edges of a node are added while the other nodes, including those to be connected, haven't been added yet. Therefore it would be very helpful if those edges were added without creating non-existing nodes.
Even better: An event is emitted when those yet non-existing nodes are queries, so they can be dynamically added (e.g. by network request).
The text was updated successfully, but these errors were encountered:
From an API a list of nodes (each has an individual ID) is fetched, each node has a list of connections with other node IDs.
The nodes list is iterated over and each node is added to the ngraph as graph node, and each connections list of the node is also iterated over and each connection should also be added as graph edge - and here is the underlying issue:
The graph edge needs the target node to be existing. One would need multiple iterations over all the nodes and their connections to avoid this.
When an edge is added, non-existing nodes are added automatically.
However, sometimes the edges of a node are added while the other nodes, including those to be connected, haven't been added yet. Therefore it would be very helpful if those edges were added without creating non-existing nodes.
Even better: An event is emitted when those yet non-existing nodes are queries, so they can be dynamically added (e.g. by network request).
The text was updated successfully, but these errors were encountered: