Skip to main content

edges_among

Function edges_among 

Source
pub fn edges_among(conn: &Connection, ids: &[&str]) -> Result<Vec<GraphEdge>>
Expand description

Read edges whose source AND target are both in ids — the induced subgraph over a candidate node set.

Used to build the candidate subgraph for PageRank boosting in smart_recall. ids.len() must stay under SQLite’s bind-variable limit (999 by default); smart_recall caps at 100.