Adding a node to an formatted document


#1

I want to add a node to a document that has been formated with the force directed autolayout. The problem is I can’t format this node and only this node after I add it to the document, it is just added to the top left hand corner. Is there a way to add a node and perform a force directed autolayout without performming a full autolayout of the document? There might already be 1000 nodes and it takes a while to perform an autolayout every time I want to add a single node.
Thanks,
Jeff


Overlapping problem
#2

The problem is that adding a single node can affect every other node in the document.
Did you already know about the GoLayoutForceDirected.IsFixed predicate? Implementing it as follows should help:
protected override bool IsFixed(GoLayoutNetworkNode node) {
return node.GoObject != myNewlyAddedNode;
}