/** * Spring layout algorithm (Fruchterman-Reingold variant) */ import { Graph, Node, PositionMap } from "../../types"; /** * Position nodes using Fruchterman-Reingold force-directed algorithm. * @param G - Graph or list of nodes * @param k - Optimal distance between nodes * @param pos - Initial positions for nodes * @param fixed - Nodes to keep fixed at initial position * @param iterations - Maximum number of iterations * @param scale - Scale factor for positions * @param center - Coordinate pair around which to center the layout * @param dim - Dimension of layout * @param seed - Random seed for initial positions * @returns Positions dictionary keyed by node */ export declare function springLayout(G: Graph, k?: number | null, pos?: PositionMap | null, fixed?: Node[] | null, iterations?: number, scale?: number, center?: number[] | null, dim?: number, seed?: number | null): PositionMap; //# sourceMappingURL=spring.d.ts.map