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 sets, and a pinned one stays exactly there.

Errors. An invalid options patch, or a graph the engine rejects.

Arguments

A layered-layout request: the graph, the preset its options start from, and the fields of

Layout

One laid-out drawing.

import r4pm

res = r4pm.bindings.layout_graph({})

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.

Arguments

A tidy-tree request: a rooted tree or forest, and the [`TreeOptions`] fields to change.

Layout

One laid-out drawing.

import r4pm

res = r4pm.bindings.layout_tree({})

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.

Arguments

A layered-layout request: the graph, the preset its options start from, and the fields of

Layout

One laid-out drawing.

import r4pm

res = r4pm.bindings.reroute_graph({})