Dagre Configuration Attributes
This type represents the config for the dagre layout algorithm
Note : For complete info on default values and description of each field, please see associated attributes.
Attribute type for Dagre
These function set the respective attributes for the algorithm
Note :
v < 0
then absolute value of v is used.The rankDir defines the direction for rank nodes.
The possible values can be TB, BT, LR, or RL.
The default value is TB
The widthDict associates nodes with a width that will be used during the layout.
-- For example you want nodes 1,2,3 with widths 50,60,70 respectively then
-- you can pass the following
let
widths =
Dict.fromList [ ( 1, 50 ), ( 2, 60 ), ( 3, 70 ) ]
in
runLayout [ widthDict widths ] simplegraphThe dafualt value is Dict.empty
The heightDict associates nodes with a height that will be used during the layout.
-- For example you want nodes 1,2,3 with heights 30,50,40 respectively then
-- you can pass the following
let
heights =
Dict.fromList [ ( 1, 30 ), ( 2, 50 ), ( 3, 40 ) ]
in
runLayout [ heightDict heights ] simplegraphThe dafualt value is Dict.empty
Defines the default width that will be used during the layout. This value will be used when no value is available in widthDict for some node.
The default value of width is 32 pixels.
Defines the default height that will be used during the layout. This value will be used when no value is available in heightDict for some node.
The default value of height is 32 pixels.
Defines the number of pixels that separate nodes in same rank in the layout.
The default value is 50 pixel.
Defines the number of pixels that separate edges horizontally in the layout.
The default value is 10 pixel.
Defines number of pixels between each rank in the layout.
The default value is 75 pixel.
Defines the number of pixels to use as a margin around the left and right of the graph.
The default value is 20 pixels.
Defines the number of pixels to use as a margin around the top and bottom of the graph.
The default value is 20 pixel.
This type represents the rank directions. T,L,B,R represent Top, Left, Bottom, Right respectively. TB represent Top to Bottom direction. Similar notation is used for other directions.