Expand description
Convert audit blueprints to petgraph directed graphs.
Each node represents a (procedure_id, state) pair and each edge
represents a transition within a procedure’s FSM aggregate.
Structs§
- State
Node - A graph node representing a procedure state.
- Transition
Edge - A graph edge representing a transition between states.
Functions§
- blueprint_
to_ graph - Convert an
AuditBlueprintinto a petgraphDiGraph. - find_
initial_ nodes - Return nodes with no incoming edges (entry points / initial states).
- find_
terminal_ nodes - Return nodes with no outgoing edges (terminal / completed states).