Esempio n. 1
0
 private void AdjustmentStep()
 {
     placed[sg.Root] = true;
     foreach (var node in sg.HierarchyBreadthFirst())
     {
         PlaceNodeChildren(node);
     }
     //for (int i = 0; i < 2; i++)
     foreach (var node in sg.HierarchyBreadthFirst().Reverse())
     {
         CollapseCircles(node);
     }
     CollapseCircles(sg.Root);
     for (int i = 0; i < 5; i++)
     {
         foreach (var node in sg.HierarchyBreadthFirst())
         {
             RotateChildren(node);
         }
     }
     foreach (var leaf in sg.Leaves)
     {
         RotateLeaves(leaf);
     }
 }
 private void AdjustmentStep()
 {
     placed[sg.Root] = true;
     foreach (var node in sg.HierarchyBreadthFirst())
     {
         PlaceNodeChildren(node);
     }
     foreach (var node in sg.HierarchyBreadthFirst().Reverse())
     {
         CollapseCircles(node);
     }
     foreach (var node in sg.HierarchyBreadthFirst())
     {
         RotateChildren(node);
     }
 }