Skip to main content

relativize_graph

Function relativize_graph 

Source
pub fn relativize_graph(
    graph: &mut Graph,
    target: &Path,
    roots: &BTreeMap<String, String>,
)
Expand description

Relativize a structural Graph in place (before cycles are computed): file node ids (absolute paths) become {target}/rel / {root}/rel, edge endpoints and node parents follow, external path attributes are relativized, and redundant/empty path attributes are dropped.