API REFERENCE

NetworkGraphForceStats

The NetworkGraphForceStats type declaration and related types. Optional fields are marked with ?.

Type declaration

typescript
export interface NetworkGraphForceStats {
  algorithm: 'exact' | 'barnes-hut';
  theta: number;
  iterations: number;
  requestedIterations: number;
  converged: boolean;
  maxDisplacement: number;
  stopReason: 'converged' | 'iterations' | 'budget';
  pairInteractions: number;
  springInteractions: number;
  workUsed: number;
  attemptedIterations: number;
  treeBuildVisits: number;
  cellVisits: number;
  leafInteractions: number;
  collisionPairs: number;
  workBudget: number;
}