Skip to main content

subgraph

Function subgraph 

Source
pub fn subgraph(
    graph: &MaterializedGraph,
    start: &str,
    hops: usize,
) -> (Vec<String>, Vec<String>)
Expand description

Extract subgraph: all nodes and edges within N hops of a start node. Returns (node_ids, edge_ids).