pub fn clone_subgraph(graph: &Graph, node_ids: &HashSet<StableId>) -> Graph
Creates a new minimal Graph containing only the specified nodes and the edges connecting them.