/ruflo-graph-intelligence:sublinear-core [ppr|push|solve|estimate]from ruflo-graph-intelligence
Provides personalized PageRank, local forward/backward push, and sparse diagonally dominant linear system solves via @ruvnet/sublinear-core. Useful for relevance queries on large graphs and estimating entries of A^-1 b.
Ships in ruflo-graph-intelligence. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
@ruvnet/sublinear-core 1.0 is the embeddable math from sublinear-time-solver with no runtime dependencies (under 30 kB; Node 16+, Bun, Deno, browsers; ESM and CJS). It replaces the 184-dependency sublinear-time-solver as this plugin's declared solver dependency. Reach for the full package only when you want its MCP server or CLI.
| Question | Call | Cost |
|---|---|---|
| What is relevant around these seed nodes? | forwardPush(g, seeds, { epsilon }) | O(1 / ((1 − damping) · epsilon)) pushes, independent of graph size |
| How much does every source reach this one target? | backwardPush(g, target, { epsilon }) | bounded by the in-neighbourhood explored |
| Exact random walk with restart | personalizedPageRank(g, seeds) | O(iterations · (n + m)) |
| Global importance | pageRank(g) | O(iterations · (n + m)) |
Solve A x = b | solve(A, b, { method }) (auto, conjugate-gradient, gauss-seidel, jacobi, neumann) | O(iterations · nnz) |
One entry of x | estimateEntry(A, b, i, { seed }) | Monte Carlo, independent of n after a one-time check |
npm i @ruvnet/sublinear-core@^1.0.0.import { graphFromEdges, forwardPush, topK } from '@ruvnet/sublinear-core';
const g = graphFromEdges([['api', 'auth'], ['auth', 'session'], ['session', 'db'], ['db', 'auth']]);
const r = forwardPush(g, 'auth', { epsilon: 1e-4 }); // { scores, residualMass, pushes, converged }
console.log(topK(r.scores, 3, g)); // [{ node, index, score }, ...]
import { csrFromDense, diagonalDominance, solve, estimateEntry } from '@ruvnet/sublinear-core';
const A = csrFromDense([[4, -1, 0], [-1, 4, -1], [0, -1, 4]]);
diagonalDominance(A); // { strictlyRowDominant, minMargin, jacobiNorm, ... }
solve(A, [1, 2, 3]); // { x, residual, iterations, converged, method }
estimateEntry(A, [1, 2, 3], 1, { seed: 7 }); // { estimate, standardError, walks, steps }
converged and residual (or residualMass for push) with every answer. An unconverged result is an approximation, not a failure, but say so.Inputs are validated and capped (DEFAULT_LIMITS), so untrusted JSON cannot force unbounded allocation; errors are SublinearError with a code such as NOT_DIAGONALLY_DOMINANT or UNKNOWN_NODE.
agentdb_graph-pathfinder (ruflo MCP): personalized PageRank and exact min cut over ruflo's own knowledge graph. Prefer it there; it needs no install.sublinear-solver (installed by ruflo init): the full sublinear-time-solver CLI and MCP server, for matrices from files.sublinear_solve and sublinear_pagerank MCP tools expose the same solves through the external agentic-flow plugin.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ruvnet/ruflo --plugin ruflo-graph-intelligenceOther plugins' skills for the same job