Insert node example - Rete.js

Insert node

In this scenario, the user can insert the node into connection between other nodes. The implementation replaces the connection with two new connections when the selected node is dropped onto the connection.

After adding the connection, the graph is arranged with animation.

Use the insert-node directory and call insertableNodes with proper arguments to integrate this feature into your application.