Open michaelkruglos opened 2 years ago
Unfortunately, MDS layout does not support clusters, but the Sugiyama one does. With clusters present, to use the MDS layout, one needs to go through InitialLayoutByClusters. The simple option of assigning viewer.Graph = graph; would not work.
Hi Lev, I tried to modify WpfAplicationSample to show MDS layout, and it throws
KeyNotFoundException
. Here are my modifications:The line, which throws exception is:
Checking with debugger, I can see that
subgraph2
is missing fromnodeIndex
dictionary. I have no idea why it happens specifically with MDS, but doesn't happen with Sugiyama. Am I doing something wrong, or is there a bug in MDS layout algorithm? Here's the screenshot of the exception being thrown: