export interface IMSTEdge { from: number; to: number; cost: number; } /** * Build a Minimum Spanning Tree (Prim's) over indexed nodes with a cost callback. * Returns a list of edges connecting all nodes in a tree (n-1 edges) or fewer if disconnected. */ export declare function buildMST(nodes: T[], costFn: (i: number, j: number) => number, startIndex?: number): IMSTEdge[]; //# sourceMappingURL=mst.d.ts.map