@graphty/layout
Version:
graph layout algorithms based on networkx
16 lines (15 loc) • 601 B
TypeScript
/**
* Shell layout algorithm
*/
import { Graph, Node, PositionMap } from '../../types';
/**
* Position nodes in concentric circles.
*
* @param G - Graph or list of nodes
* @param nlist - List of node lists for each shell
* @param scale - Scale factor for positions
* @param center - Coordinate pair around which to center the layout
* @param dim - Dimension of layout (currently only supports dim=2)
* @returns Positions dictionary keyed by node
*/
export declare function shellLayout(G: Graph, nlist?: Node[][] | null, scale?: number, center?: number[] | null, dim?: number): PositionMap;