Layouts

Functions for performing LAYOUTS in addition to getting and setting layout properties.

  1. Perform layout functions

  2. Get layout properties

  3. Set layout properties

Note that yFiles layouts are not available due to licensing restrictions with yWorks, the owner of yFiles.

Perform Layout

bundle_edges([network, base_url])

Apply edge bundling to the network specified.

clear_edge_bends([network, base_url])

Clear all edge bends created from edge bundling.

layout_copycat(source_network, target_network)

Copy a layout from one network to another.

layout_network([layout_name, network, base_url])

Apply a layout to a network.

rotate_layout(angle[, selected_only, …])

Rotate the layout to a network.

scale_layout(axis, scale_factor[, …])

Scale the layout to a network.

Layout Properties

get_layout_name_mapping([base_url])

Get Layout Name Mapping.

get_layout_names([base_url])

Retrieve the names of the currently supported layout algorithms.

get_layout_property_names(layout_name[, …])

Returns a list of the tunable properties for the specified layout.

get_layout_property_type(layout_name, …[, …])

Returns the type of one of the tunable properties (property_name) for the specified layout.

get_layout_property_value(layout_name, …)

Returns the appropriately typed value of the specified tunable property for the specified layout.

set_layout_properties(layout_name, …[, …])

Sets the specified properties for the specified layout.