Maintain position of existing nodes during autolayout

Hello!

My diagram is a token passing machine just like the PathAnimation sample. During the execution, the machine will add/remove (new) nodes to/from the diagram. I want the position of all existing nodes to be fixed meanwhile the new nodes can be autolayout (and be fixed afterwards). I tried to use isLayoutPositioned, but the new nodes will overlap with the existing nodes (probably because the existing nodes are invisible to the layout). The below thread has a solution specific to Force-Directed graph only but I am using Layered Digraph. Any suggestion will be appreciated!

Yes, that solution only applies to ForceDirectedLayout.

What if your newly added nodes and links would require moving pre-existing nodes in order to avoid overlaps?

I suggest that you set Layout.isOngoing to false and position the new nodes yourself.