Open sanast22 opened 1 month ago
autolayout
Function ParametersThe autolayout
function accepts the following parameters:
max_num_connected_edges
(default: 3
):
max_num_connected_edges
, the autolayout algorithm creates additional alias nodes to represent the species in different reactions.max_num_connected_edges
is set to 3, the algorithm will generate two SpeciesGlyphs: the first will be associated with the first 3 reactions, and the second with the remaining 2 reactions.reset_locked_nodes
(default: False
):
True
, all existing locked nodes will be unlocked, and only the nodes specified in locked_nodes
will be locked in the new layout. False
, the positions of previously locked nodes will be preserved while the layout algorithm is applied to the rest.locked_nodes
(default: []
):
For the locked_nodes parameter, are the node IDs the same as speciesIDs?
Yup! You need to pass the species ids as locked_nodes.
In this release, we introduced the ability to lock alias nodes. The locked_nodes
parameter can now be one of the following:
A list of lists, where each sublist includes:
id
(string): The ID of the node that must not be moved when the autolayout algorithm is applied.index
(integer): The index of the graphical nth graphical object associated to the node that must remain stationary when the autolayout algorithm is applied.A list of node IDs (strings) that must be locked when the autolayout algorithm is applied.
Could you explain how to use the locked_nodes parameter (and other parameters the user can change) in the autolayout function?