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 degree sum ranking. */ export interface DegreeRankingConfig { /** * Traversal mode for path finding. */ traversalMode?: "directed" | "undirected"; /** * Maximum number of paths to return. */ maxPaths?: number; } /** * Rank paths between two nodes by sum of node degrees. * * This baseline ranks paths by the sum of degrees of all nodes * along the path. Paths through high-degree (well-connected) nodes * 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 degree-ranked paths or error */ export declare const degreeSumRanking: (graph: Graph, startId: string, endId: string, config?: DegreeRankingConfig) => Result[]>, { type: string; message: string; }>; //# sourceMappingURL=degree-sum-ranking.d.ts.map