Skip to main content

get_subgraph

Function get_subgraph 

Source
pub fn get_subgraph<S: GraphStore + ?Sized>(
    store: &S,
    branch: &str,
    query: &str,
    depth: u8,
    direction: &str,
    options: AgentQueryOptions,
) -> Result<AgentSubgraphResponse>
Expand description

Return a compact, exact-ID neighborhood digest. Only direct relationships are serialized as evidence; deeper traversal contributes coverage counts.