Repository navigation
feat(gds): support Personalized Page Rank in query engines native execution path - #351
dhruvkjain wants to merge 1 commit into
Conversation
|
This PR has no linked approved issue. Open an issue, get it discussed and Maintainers: reopen this PR to override the gate (it gets the |
|
This is PR 1 of 3 you may keep open at a time. |
|
This PR has no linked approved issue. Open an issue, get it discussed and Maintainers: reopen this PR to override the gate (it gets the |
1 similar comment
|
This PR has no linked approved issue. Open an issue, get it discussed and Maintainers: reopen this PR to override the gate (it gets the |
Summary
Adds personalized PageRank to the native GDS execution path.
gds.pageRank.streamandgds.pageRank.writenow accept asourceNodeslist in their configuration.Implementation details : Personalized runs calls use a new PageRank path: a Rust FP32 power iteration over the same ordinal edges, with teleport mass split across
sourceNodes.It matches the existing
pageranksemantics i.e. sinks teleported in full, scores summing to 1, absolute L1 convergence attolerance,Nonewhenmax_iterationspasses, so a uniform source list reproduces the existing scores.Parallel pairs collapse to one edge, as in GraphBLAS's
FIRSTbuild.calls without
sourceNodesusesLAGr_PageRankpath.Invalid source lists are rejected at parse time, ids outside the projection error at execution time, and budget checks run inside the kernel.
Files changed :
src/sparse_kernel/lagraph.rs: personalized_pagerank power iteration and deduplicated_adjacency CSR build.src/query/gds_procedure.rs: sourceNodes parsing, validation, and to_cypher() round-trip.src/shard/gds_procedure.rs: path dispatch and id-to-ordinal resolution.src/sparse_kernel/mod.rs: re-export only.Testing :
cargo fmt --checkandcargo check --lib --testspass on Windows.Linked issue
Closes #340
AI Assistance
Checklist
/approved.Breaking changes
None.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.