pub fn filter_graph(
graph: &mut LockfileGraph,
supported: &SupportedArchitectures,
ignored: &BTreeSet<String>,
)Expand description
Remove optional dependencies that fail the platform check or appear in the
ignore list from a parsed LockfileGraph, then garbage-collect any packages
that become unreachable from the surviving importers.
Used by the install-from-lockfile path, where the resolver’s inline filter never runs: the lockfile carries os/cpu/libc per package so aube can re-check on every platform without reparsing packuments.
Root and transitive optional edges are inspected directly. Any package that becomes unreachable after optional-edge pruning is removed by the GC pass.