UNPKG

@graphty/layout

Version:

graph layout algorithms based on networkx

18 lines (17 loc) 506 B
/** * Parameter processing utilities */ import { Graph, Node } from '../types'; /** * Process and validate layout parameters * Helper function similar to _process_params in Python version * * @param G - Graph object or array of nodes * @param center - Center coordinates or null * @param dim - Dimension of layout * @returns Processed parameters */ export declare function _processParams(G: Graph | Node[], center: number[] | null, dim: number): { G: Graph | Node[]; center: number[]; };