Skip to main content

build_graph

Function build_graph 

Source
pub fn build_graph(files: &[(String, String)]) -> Graph
Expand description

Build the module-use Graph from (module_name, file_contents) pairs. Nodes are the module names; an edge A -> B means a file in module A has a use resolving into module B. Self-edges are dropped.