Tree layout and locations of leafs

Aug 27, 2012 at 9:40 AM
Edited Aug 27, 2012 at 9:42 AM

Hello,

How to set correctly layout for Tree algorithm and LeftToRight direction to locate leafs in right side of Graph?

In this case two marked nodes(leafs) are located in left side, but should be located in right side of graph .

I setup layout as below:

        public MyGraphLayout()
        {
            // disable animation and flash
            this.CreationTransition = null;
            this.AsyncCompute = false;
            this.ShowAllStates = false;
            this.LayoutAlgorithmType = "Tree";
         
            this.OverlapRemovalAlgorithmType = "FSA";
            this.OverlapRemovalConstraint = AlgorithmConstraints.Must;
            this.HighlightAlgorithmType = "Simple";
           
            SimpleTreeLayoutParameters layoutParameters = new SimpleTreeLayoutParameters();
            layoutParameters.Direction = LayoutDirection.LeftToRight;
            this.LayoutParameters = layoutParameters;
        }

Coordinator
Aug 27, 2012 at 1:35 PM

Please create a ticket in the issue tracker, and provide me a sample graph in some format (CSV, GML, C# code in a test case, ...).

Your sample graph should be directed (I think there's some problem with direction of the edges).

Thanks, palesz