Hi Walter, I’ve got a strange effect with Collapsed Group, link and virtualization.
I’m using your CollapseSubGraph method. When I do it intern link are showned on subgraph group.
At this point my intern doesn’t have a valid position anymore. I do not calculate a position for not visible node, therefor when a link to or from is not visible, I search for the first visible parent and check intersection from this node with the viewport.
When I’m moving the viewport link disappear when subgraph node is no more visible, but for a reason I cannot explain, some node are made visible again when link is in viewport again.
This adding is initiate by a call to the method AddNodeForData done in Virtualization check. The Status of the Subgraph node is unchanged (still collapsed). (Arrow show the Collapsed status)
Is it a Bug?
I precise that when for example node to in viewport and node from not, when subgraph node From is partially in viewport (I would says parent Subgraph is in View but not visible node not) link is added but From is at position (0,0) not set on the Subgraph. And it’s when from should be visible in Viewport that Node to visibility value is changed.
Hope that you get what I’m saying.