@graphty/layout
Version:
graph layout algorithms based on networkx
12 lines (11 loc) • 311 B
TypeScript
/**
* Grid graph generation function
*/
import { Graph } from '../types';
/**
* Create a grid graph with rows x cols nodes
* @param rows - Number of rows
* @param cols - Number of columns
* @returns Graph object with grid topology
*/
export declare function gridGraph(rows: number, cols: number): Graph;