pub fn constrained_path(
blueprint: &AuditBlueprint,
must_visit: &[String],
preconditions: &HashMap<String, Vec<String>>,
) -> ConstrainedPathResultExpand description
Compute the shortest paths for a constrained set of procedures.
Starting from must_visit, the function expands the required set by
following preconditions transitively (DFS / BFS over the precondition
graph). It then delegates to analyze_shortest_paths for the full
blueprint and returns only the entries that belong to the required set.
ยงArguments
blueprintโ The audit blueprint to analyse.must_visitโ Procedure ids that must be covered.preconditionsโ Map from procedure id to its direct preconditions.