Skip to main content

break_cycle

Function break_cycle 

Source
pub fn break_cycle(
    report: &ScanReport,
    from_path: &str,
    to_path: &str,
) -> Result<ScanReport, SimulateError>
Expand description

Remove the local import edge from from_path to to_path and confirm the reduction lowers the report’s cycle count. Returns EdgeNotFound if the edge does not exist, or EdgeNotInCycle if removal does not break a cycle (i.e., the edge is not load-bearing for any cycle).