pub fn relativize_level(
level: &mut LevelGraph,
target: &Path,
roots: &BTreeMap<String, String>,
)Expand description
Rewrite a file-based level graph from absolute paths to relativized ids:
- file node ids (absolute paths) →
{target}/relor{root}/rel; - edge endpoints, node parents and cycle node lists follow the same map;
- external node
pathattributes are relativized too; - redundant/empty
pathattributes are dropped (a file node’s id IS its path, so it carries none).