Layout Module

Types

Type Description

LayoutOptions

Functions provide the options of the Layout objects

Functions and values

Function or value Description

initBreadthfirst applyOption

Full Usage: initBreadthfirst applyOption

Parameters:
Returns: Layout

initializes a layout of type "breadthfirst" applying the givin layout option function. The "breadthfirst" layout puts nodes in a hierarchy, based on a breadthfirst traversal of the graph. It is best suited to trees and forests in its default top-down mode, and it is best suited to DAGs in its circle mode.

applyOption : Layout -> Layout
Returns: Layout

initCircle applyOption

Full Usage: initCircle applyOption

Parameters:
Returns: Layout

initializes a layout of type "circle" applying the givin layout option function. The "circle" layout puts nodes in a circle.

applyOption : Layout -> Layout
Returns: Layout

initConcentric applyOption

Full Usage: initConcentric applyOption

Parameters:
Returns: Layout

initializes a layout of type "concentric" applying the givin layout option function. The concentric layout positions nodes in concentric circles, based on a metric that you specify to segregate the nodes into levels.

applyOption : Layout -> Layout
Returns: Layout

initCose applyOption

Full Usage: initCose applyOption

Parameters:
Returns: Layout

initializes a layout of type "cose" applying the givin layout option function. The cose (Compound Spring Embedder) layout uses a physics simulation to lay out graphs.

applyOption : Layout -> Layout
Returns: Layout

initCoseBilkent applyOption

Full Usage: initCoseBilkent applyOption

Parameters:
Returns: Layout

initializes a layout of type "cose-bilkent" applying the givin layout option function. The cose-bilkent extension is an evolution of the cose algorithm that is more computationally expensive but produces near-perfect results.

applyOption : Layout -> Layout
Returns: Layout

initGrid applyOption

Full Usage: initGrid applyOption

Parameters:
Returns: Layout

initializes a layout of type "grid" applying the givin layout option function The "grid" layout puts nodes in a well-spaced grid.

applyOption : Layout -> Layout
Returns: Layout

initPresent applyOption

Full Usage: initPresent applyOption

Parameters:
Returns: Layout

initializes a layout of type "preset" applying the givin layout option function. The "preset" layout puts nodes in the positions you specify manually.

applyOption : Layout -> Layout
Returns: Layout

initRandom applyOption

Full Usage: initRandom applyOption

Parameters:
Returns: Layout

initializes a layout of type "random" applying the givin layout option function.

applyOption : Layout -> Layout
Returns: Layout