import { Graph } from '../../algorithms/graph/graph'; import { RankedPath } from '../../algorithms/pathfinding/path-ranking'; import { Edge, Node } from '../../algorithms/types/graph'; import { Option } from '../../algorithms/types/option'; import { Result } from '../../algorithms/types/result'; /** * Configuration for PageRank sum ranking. */ export interface PageRankRankingConfig { /** * Traversal mode for path finding. */ traversalMode?: "directed" | "undirected"; /** * Maximum number of paths to return. */ maxPaths?: number; /** * Damping factor for PageRank (default: 0.85). */ damping?: number; /** * Maximum number of power iterations (default: 100). */ iterations?: number; } /** * Rank paths between two nodes by sum of PageRank scores. * * This baseline ranks paths by the sum of PageRank scores of all nodes * along the path. Paths through globally important nodes (as measured * by PageRank) receive higher scores. * * @template N - Node type * @template E - Edge type * @param graph - The graph to search * @param startId - Source node ID * @param endId - Target node ID * @param config - Optional configuration * @returns Result containing PageRank-ranked paths or error */ export declare const pageRankSumRanking: (graph: Graph, startId: string, endId: string, config?: PageRankRankingConfig) => Result[]>, { type: string; message: string; }>; //# sourceMappingURL=pagerank-sum-ranking.d.ts.map