Skip to main content

build_method_graph

Function build_method_graph 

Source
pub fn build_method_graph(conn: &MethodConnectivity) -> UnGraph<String, ()>
Expand description

Build the undirected method graph from a MethodConnectivity record.

Node set is conn.methods; edge set is conn.edges. Edge endpoints that are not listed in conn.methods are added as additional nodes (matches the permissive behaviour of nx.Graph.add_edges_from).