Skip to main content
Rust4PM

engine

process_mining::visualization::engine

Functions in this Module(3)

layout_graph

visualization::engineSource
Lay the graph of request out with the layered engine, e.g., the request of a
<model>_layout_request.
layout.nodes[i] is where request.graph.nodes[i] went, and layout.edges[i] the route of
request.graph.edges[i]. Nodes with a position steer the result as the options'
seed_mode(LayoutOptions::seed_mode) sets, and a pinned one stays exactly there.
# Errors
An invalid options patch, or a graph the engine rejects.
LayoutRequestrequiredA layered-layout request: the graph, the preset its options start from, and the fields of
import r4pm

res = r4pm.bindings.layout_graph({})

process_mining/src/visualization/engine.rs:189

layout_tree

visualization::engineSource
Lay the rooted tree or forest of request out with the tidy-tree engine, e.g., the request
of process_tree_layout_request.
# Errors
An invalid options patch, or a graph that is not a rooted tree or forest.
TreeRequestrequiredA tidy-tree request: a rooted tree or forest, and the [`TreeOptions`] fields to change.
import r4pm

res = r4pm.bindings.layout_tree({})

process_mining/src/visualization/engine.rs:232

reroute_graph

visualization::engineSource
Keep every node where it is and route the edges again, e.g., after the user dragged a node.
positions are the node centers, one per node, in node order. An empty slice uses the
position each node of request already carries.
# Errors
An invalid options patch, a position count other than the node count, or a node without a
position.
LayoutRequestrequiredA layered-layout request: the graph, the preset its options start from, and the fields of
Vec<Point>
import r4pm

res = r4pm.bindings.reroute_graph({})

process_mining/src/visualization/engine.rs:204