Partial Layout Demo
Shows how to integrate (new) graph elements into an existing graph layout with
PartialLayout.
This layout algorithm changes the coordinates of a given set of graph elements (called
partial elements) and leaves the location and size of all other elements (called
fixed elements) unchanged. The algorithm aims to place the partial elements such
that the resulting drawing (including the fixed elements) has a good quality with respect
to common graph drawing aesthetics.
Partial node elements can be assigned to the so called
subgraph components. During the layout process each subgraph induced by
the nodes of a component is first laid out using the specified subgraph layout. Then, the
different components are placed one-by-one onto the drawing area such that the number of
overlaps among graph elements is small. The user can specify different placement
strategies for finding 'good' positions for subgraph components.
The demo allows for specifying fixed and partial elements. Fixed elements are
drawn grey and partial elements are colored. To change the
fixed/partial state of elements, select the corresponding elements and click on the
Lock Selected Elements or Unlock Selected Elements button. The current
state of the selected elements can be toggled with a mouse-double-click. To start the
partial layout click on the play button.
Different scenarios for hierarchic, orthogonal, organic or circular layout are available.
A scenario includes a graph arranged with the corresponding layout style and some new
graph elements that shall be placed by PartialLayout. In addition suitable
configuration options are preset.