Skip to main content

graph_neighbors

Function graph_neighbors 

Source
pub fn graph_neighbors(
    conn: &Connection,
    seed_ids: &[String],
) -> Vec<(String, f64)>
Expand description

Get 1-hop neighbors from seed IDs. Returns (neighbor_id, total_weight) sorted by weight DESC.

Follows edges in both directions (source→target and target→source). Seed nodes are excluded from results.