<
From version < 38.1 >
edited by cds
on 2015/02/18 15:15
To version < 40.1 >
edited by cds
on 2015/02/18 15:20
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -763,97 +763,65 @@
763 763  
764 764  This section explains every layout option in more detail. See [[the KIML documentation>>doc:KIML Layout Options]] for more information on KIML layout options. Those options are only mentioned here if KLay Layered adds some custom behavior.
765 765  
766 -== Add Unnecessary Bendpoints ==
766 +== ==
767 767  
768 -{{id name="addUnnecessaryBendpoints"/}}
768 +{{id name="addUnnecessaryBendpoints"/}}Add Unnecessary BendpointsBy default, KLay Layered tries not to add bendpoints to an edge at positions where the edge doesn't change direction since there's no real bend there. Turning this option on forces such bend points. More specifically, a bend point is added for each edge that spans more than one layer at the point where it crosses a layer. If hierarchy layout is turned on, a bend point is also added whenever the edge crosses a hierarchy boundary.
769 769  
770 -
770 +== ==
771 771  
772 -By default, KLay Layered tries not to add bendpoints to an edge at positions where the edge doesn't change direction since there's no real bend there. Turning this option on forces such bend points. More specifically, a bend point is added for each edge that spans more than one layer at the point where it crosses a layer. If hierarchy layout is turned on, a bend point is also added whenever the edge crosses a hierarchy boundary.
772 +{{id name="contentAlignment"/}}Content AlignmentDetermines how the content of compound nodes is to be aligned if the compound node's size exceeds the bounding box of the content (i.e. child nodes). This might be the case if for a compound node the size constraint of {{code language="none"}}MINIMUM_SIZE{{/code}} is set and the minimum width and height are set large enough.
773 773  
774 -== Content Alignment ==
775 -
776 -{{id name="contentAlignment"/}}
777 -
778 -
779 -
780 -Determines how the content of compound nodes is to be aligned if the compound node's size exceeds the bounding box of the content (i.e. child nodes). This might be the case if for a compound node the size constraint of {{code language="none"}}MINIMUM_SIZE{{/code}} is set and the minimum width and height are set large enough.
781 -
782 782  {{note}}
783 783  This option is not tested for external ports with port constraints {{code language="none"}}FIXED_RATIO{{/code}} or {{code language="none"}}FIXED_POS{{/code}}.
784 784  {{/note}}
785 785  
786 -== Crossing Minimization ==
778 +== ==
787 787  
788 -{{id name="crossingMinimization"/}}
780 +{{id name="crossingMinimization"/}}Crossing MinimizationCrossing minimization determines the ordering of nodes in each layer, which influences the number of edge crossings. This option switches between one of several algorithms that can be used to minimize crossings. Possible values are:
789 789  
790 -
791 -
792 -Crossing minimization determines the ordering of nodes in each layer, which influences the number of edge crossings. This option switches between one of several algorithms that can be used to minimize crossings. Possible values are:
793 -
794 -* LAYER_SWEEP
782 +* {{code language="none"}}LAYER_SWEEP{{/code}}
795 795  The layer sweep algorithm iterates multiple times over the layers, trying to find node orderings that minimize the number of crossings. The algorithm uses randomization to increase the odds of finding a good result. To improve its results, consider increasing the //Thoroughness// option, which influences the number of iterations done. The //Randomization// seed also influences results.
796 -* INTERACTIVE
784 +* {{code language="none"}}INTERACTIVE{{/code}}
797 797  Orders the nodes of each layer by comparing their positions before the layout algorithm was started. The idea is that the relative order of nodes as it was before layout was applied is not changed. This of course requires valid positions for all nodes to have been set on the input graph before calling the layout algorithm. The interactive layer sweep algorithm uses the //Interactive Reference Point// option to determine which reference point of nodes are used to compare positions.
798 798  
799 -== Cycle Breaking ==
787 +== ==
800 800  
801 -{{id name="cycleBreaking"/}}
789 +{{id name="cycleBreaking"/}}Cycle BreakingKLay Layered tries to position nodes in a way that all edges point rightwards. This is not possible if the input graph has cycles. Such cycles have to be broken by reversing as few edges as possible. The reversed edges end up pointing leftwards in the resulting diagram. There are different cycle breaking algorithms available:
802 802  
803 -
804 -
805 -KLay Layered tries to position nodes in a way that all edges point rightwards. This is not possible if the input graph has cycles. Such cycles have to be broken by reversing as few edges as possible. The reversed edges end up pointing leftwards in the resulting diagram. There are different cycle breaking algorithms available:
806 -
807 -* GREEDY
791 +* {{code language="none"}}GREEDY{{/code}}
808 808  This algorithm reverses edges greedily. The algorithm tries to avoid edges that have the //Priority// property set.
809 -* INTERACTIVE
793 +* {{code language="none"}}INTERACTIVE{{/code}}
810 810  The interactive algorithm tries to reverse edges that already pointed leftwards in the input graph. This requires node and port coordinates to have been set to sensible values.
811 811  
812 -== Direction ==
796 +== ==
813 813  
814 -{{id name="direction"/}}
798 +{{id name="direction"/}}DirectionThe layout direction influences where the majority of edges in the final layout will point to. With data flow diagrams, this will usually be to the right. With control flow diagrams, it might be downwards. The layout direction defaults to {{code language="none"}}UNDEFINED{{/code}}. This causes KLay Layered to calculate a layout direction based on the {{code language="none"}}ASPECT_RATIO{{/code}} setting. As of now, if the aspect ratio is >=1 (that is, if the diagram should be wider than it is high), the direction is set to {{code language="none"}}RIGHT{{/code}}. Otherwise, it is set to {{code language="none"}}DOWN{{/code}}.
815 815  
816 -
800 +== ==
817 817  
818 -The layout direction influences where the majority of edges in the final layout will point to. With data flow diagrams, this will usually be to the right. With control flow diagrams, it might be downwards. The layout direction defaults to {{code language="none"}}UNDEFINED{{/code}}. This causes KLay Layered to calculate a layout direction based on the {{code language="none"}}ASPECT_RATIO{{/code}} setting. As of now, if the aspect ratio is >=1 (that is, if the diagram should be wider than it is high), the direction is set to {{code language="none"}}RIGHT{{/code}}. Otherwise, it is set to {{code language="none"}}DOWN{{/code}}.
802 +{{id name="edgeSpacingFactor"/}}Edge Spacing FactorThe edge spacing factor determines the amount of space between edges, relative to the regular //Spacing// value. The idea is that we don't need as much space between edges as we do between nodes.
819 819  
820 -== Edge Spacing Factor ==
821 -
822 -{{id name="edgeSpacingFactor"/}}
823 -
824 -
825 -
826 -The edge spacing factor determines the amount of space between edges, relative to the regular //Spacing// value. The idea is that we don't need as much space between edges as we do between nodes.
827 -
828 828  [[image:attach:edgeSpacingFactor.png]]
829 829  
830 -== Edge Label Side Selection ==
806 +== ==
831 831  
832 -{{id name="edgeLabelSideSelection"/}}
808 +{{id name="edgeLabelSideSelection"/}}Edge Label Side SelectionDetermines how KLay Layered places edge labels. The following strategies are available:
833 833  
834 -
835 -
836 -Determines how KLay Layered places edge labels. The following strategies are available:
837 -
838 -* ALWAYS_UP
810 +* {{code language="none"}}ALWAYS_UP{{/code}}
839 839  Always places edge labels above the edge.
840 -* ALWAYS_DOWN
812 +* {{code language="none"}}ALWAYS_DOWN{{/code}}
841 841  Always places edge labels below the edge.
842 -* DIRECTION_UP
814 +* {{code language="none"}}DIRECTION_UP{{/code}}
843 843  Places edge labels above edges pointing right, and below edges pointing left.
844 -* DIRECTION_DOWN
816 +* {{code language="none"}}DIRECTION_DOWN{{/code}}
845 845  Places edge labels below edges pointing right, and above edges pointing left.
846 -* SMART
818 +* {{code language="none"}}SMART{{/code}}
847 847  Uses a heuristic that determines the best edge label placement, also taking the placement of port labels into account.
848 848  
849 -== Feedback Edges ==
821 +== ==
850 850  
851 -{{id name="feedbackEdges"/}}
823 +{{id name="feedbackEdges"/}}Feedback EdgesFeedback edges are edges that feed the output of a node back to be the input of a previous node. This option controls how feedback edges are routed if port constraints are FREE. This influences how much emphasis is put on feedback edges.
852 852  
853 -
854 -
855 -Feedback edges are edges that feed the output of a node back to be the input of a previous node. This option controls how feedback edges are routed if port constraints are FREE. This influences how much emphasis is put on feedback edges.
856 -
857 857  With feedback edges:
858 858  
859 859  [[image:attach:feedback_on.png]]
... ... @@ -862,37 +862,25 @@
862 862  
863 863  [[image:attach:feedback_off.png]]
864 864  
865 -== Fixed Alignment ==
833 +== ==
866 866  
867 -{{id name="fixedAlignment"/}}
835 +{{id name="fixedAlignment"/}}Fixed AlignmentThe {{code language="none"}}BRANDES_KOEPF{{/code}} node placement algorithm computes several different node placements. One of the placements is chosen by the algorithm, usually the one that takes the least amount of space. With this option, a particular result can be chosen.
868 868  
869 -
870 -
871 -The BRANDES_KOEPF node placement algorithm computes several different node placements. One of the placements is chosen by the algorithm, usually the one that takes the least amount of space. With this option, a particular result can be chosen.
872 -
873 873  This option should usually be left alone.
874 874  
875 -== Interactive Reference Point ==
839 +== ==
876 876  
877 -{{id name="interactiveReferencePoint"/}}
841 +{{id name="interactiveReferencePoint"/}}Interactive Reference PointInteractive layering, crossing minimization, and cycle breaking algorithms use node positions to sort nodes into layers or to determine the order of nodes in each layer. However, it is unclear if for example the top left corners of nodes should be compared, or the bottom left corners — different settings might lead to different results. The interactive reference point determines which part of nodes is used to compare their positions. It provides the following settings:
878 878  
879 -
880 -
881 -Interactive layering, crossing minimization, and cycle breaking algorithms use node positions to sort nodes into layers or to determine the order of nodes in each layer. However, it is unclear if for example the top left corners of nodes should be compared, or the bottom left corners — different settings might lead to different results. The interactive reference point determines which part of nodes is used to compare their positions. It provides the following settings:
882 -
883 -* TOP_LEFT
843 +* {{code language="none"}}TOP_LEFT{{/code}}
884 884  The top left corner of a node is taken as the reference point.
885 -* CENTER
845 +* {{code language="none"}}CENTER{{/code}}
886 886  The center of a node is taken as the reference point.
887 887  
888 -== Layer Constraint ==
848 +== ==
889 889  
890 -{{id name="layerConstraint"/}}
850 +{{id name="layerConstraint"/}}Layer ConstraintThe layer a node is placed in is usually computed by the layer assignment algorithms. However, sometimes certain nodes need to be placed in the first or in the last layer (for example, nodes that represent inputs from the outside). The layer constraint option can be set on such nodes to do just that.
891 891  
892 -
893 -
894 -The layer a node is placed in is usually computed by the layer assignment algorithms. However, sometimes certain nodes need to be placed in the first or in the last layer (for example, nodes that represent inputs from the outside). The layer constraint option can be set on such nodes to do just that.
895 -
896 896  [[image:attach:layer_constraints.png]]
897 897  
898 898  {{note}}
... ... @@ -899,12 +899,10 @@
899 899  This option can also be set to {{code language="none"}}FIRST_SEPARATE{{/code}} and {{code language="none"}}LAST_SEPARATE{{/code}}. These are for internal use only and should not have been publicly exposed in the first place. Using them can result in layout problems.
900 900  {{/note}}
901 901  
902 -== Linear Segments Deflection Dampening ==
858 +== ==
903 903  
904 -{{id name="deflectionDampening"/}}
860 +{{id name="deflectionDampening"/}}Linear Segments Deflection Dampening
905 905  
906 -
907 -
908 908  {{note}}
909 909  This is a very advanced layout option that you normally shouldn't worry about.
910 910  {{/note}}
... ... @@ -911,57 +911,37 @@
911 911  
912 912  The linear segments node placer can sometimes place nodes in a way that results in unnecessarily large diagrams. This option dampens how much the nodes are moved around. A dampening factor of 1.0 disables dampening and just lets the node placer do what it wants. A more conservative dampening factor of 0.3 (the default) restricts the freedom of the node placer a bit more.
913 913  
914 -== Maximal Iterations ==
868 +== ==
915 915  
916 -{{id name="maximalIterations"/}}
870 +{{id name="maximalIterations"/}}Maximal IterationsDelimits the amount of depth-first-search iterations performed by the network simplex layering strategy. Large, highly connected graphs might require a long time to be processed. This property serves as a timeout after which an exception is raised.
917 917  
918 -
872 +== ==
919 919  
920 -Delimits the amount of depth-first-search iterations performed by the network simplex layering strategy. Large, highly connected graphs might require a long time to be processed. This property serves as a timeout after which an exception is raised.
874 +{{id name="mergeEdges"/}}Merge EdgesIn the KGraph model, edges can either connect to nodes through ports or directly. In the latter case, KLay Layered will introduce a virtual port for each edge, which results in all edges connecting to the node at different points in the final drawing. If this option is switched on, KLay Layered will only generate up to one input and one output port for each node. The option is set on a parent node and applies to all of its children, but not to the parent node itself.
921 921  
922 -== Merge Edges ==
923 -
924 -{{id name="mergeEdges"/}}
925 -
926 -
927 -
928 -In the KGraph model, edges can either connect to nodes through ports or directly. In the latter case, KLay Layered will introduce a virtual port for each edge, which results in all edges connecting to the node at different points in the final drawing. If this option is switched on, KLay Layered will only generate up to one input and one output port for each node. The option is set on a parent node and applies to all of its children, but not to the parent node itself.
929 -
930 930  [[image:attach:merging.png]]
931 931  
932 -== Merge Hierarchy-Crossing Edges ==
878 +== ==
933 933  
934 -{{id name="mergeHierarchyEdges"/}}
880 +{{id name="mergeHierarchyEdges"/}}Merge Hierarchy-Crossing EdgesIf hierarchical layout is active, this option is the hierarchical equivalent to //Merge Edges//. If set to true on a compound node, all hierarchy-crossing edges that start or end inside that compound node are eligible for merging.
935 935  
936 -
937 -
938 -If hierarchical layout is active, this option is the hierarchical equivalent to //Merge Edges//. If set to true on a compound node, all hierarchy-crossing edges that start or end inside that compound node are eligible for merging.
939 -
940 940  [[image:attach:merge_hierarchy_edges.png]]
941 941  
942 -== Node Layering ==
884 +== ==
943 943  
944 -{{id name="nodeLayering"/}}
886 +{{id name="nodeLayering"/}}Node LayeringDecides which algorithm is used to compute the layer each node is placed in. We have different algorithms available, with different optimization goals:
945 945  
946 -
947 -
948 -Decides which algorithm is used to compute the layer each node is placed in. We have different algorithms available, with different optimization goals:
949 -
950 -* NETWORK_SIMPLEX
888 +* {{code language="none"}}NETWORK_SIMPLEX{{/code}}
951 951  This algorithm tries to minimize the length of edges. This is the most computationally intensive algorithm. The number of iterations after which it aborts if it hasn't found a result yet can be set with the [[Maximal Iterations>>doc:||anchor="maximalInterations"]] option.
952 -* LONGEST_PATH
890 +* {{code language="none"}}LONGEST_PATH{{/code}}
953 953  A very simple algorithm that distributes nodes along their longest path to a sink node.
954 -* INTERACTIVE
892 +* {{code language="none"}}INTERACTIVE{{/code}}
955 955  Distributes the nodes into layers by comparing their positions before the layout algorithm was started. The idea is that the relative horizontal order of nodes as it was before layout was applied is not changed. This of course requires valid positions for all nodes to have been set on the input graph before calling the layout algorithm. The interactive node layering algorithm uses the //Interactive Reference Point// option to determine which reference point of nodes are used to compare positions.
956 956  
957 -== Node Placement ==
895 +== ==
958 958  
959 -{{id name="nodePlacement"/}}
897 +{{id name="nodePlacement"/}}Node PlacementDecides which algorithm is used to compute the y coordinate of each node. This influences the length of edges, the number of edge bends, and the height of the diagram. We have different algorithms available, with different optimization goals:
960 960  
961 -
962 -
963 -Decides which algorithm is used to compute the y coordinate of each node. This influences the length of edges, the number of edge bends, and the height of the diagram. We have different algorithms available, with different optimization goals:
964 -
965 965  * {{code language="none"}}BRANDES_KOEPF{{/code}}
966 966  Minimizes the number of edge bends at the expense of diagram size: diagrams drawn with this algorithm are usually higher than diagrams drawn with other algorithms.
967 967  * {{code language="none"}}LINEAR_SEGMENTS{{/code}}
... ... @@ -973,10 +973,6 @@
973 973  * {{code language="none"}}SIMPLE{{/code}}
974 974  Minimizes the area at the expense of... well, pretty much everything else.
975 975  
976 -== Thoroughness ==
910 +== ==
977 977  
978 -{{id name="thoroughness"/}}
979 -
980 -
981 -
982 -There are heuristics in use all over KLay Layered whose results often improve with the number of iterations computed. The thoroughness is a measure for telling KLay Layered to compute more iterations to improve the quality of results, at the expense of performance.
912 +{{id name="thoroughness"/}}ThoroughnessThere are heuristics in use all over KLay Layered whose results often improve with the number of iterations computed. The thoroughness is a measure for telling KLay Layered to compute more iterations to improve the quality of results, at the expense of performance.
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -10751225
1 +12288527
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/10751225/KLay Layered Layout Options
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/12288527/KLay Layered Layout Options