UNPKG

@graphty/layout

Version:

graph layout algorithms based on networkx

13 lines (12 loc) 423 B
/** * Scale-free graph generation function */ import { Graph } from '../types'; /** * Create a scale-free graph using Barabási-Albert model * @param n - Total number of nodes * @param m - Number of edges to attach from new node * @param seed - Random seed for reproducibility * @returns Graph object with scale-free properties */ export declare function scaleFreeGraph(n: number, m: number, seed?: number): Graph;