@antv/g6
Version:
A Graph Visualization Framework in JavaScript
9 lines (7 loc) • 395 B
text/typescript
import type { EdgeDirection } from './edge';
export type NodeCentralityOptions =
| { type: 'degree'; direction?: EdgeDirection }
| { type: 'betweenness'; directed?: boolean; weightPropertyName?: string }
| { type: 'closeness'; directed?: boolean; weightPropertyName?: string }
| { type: 'eigenvector'; directed?: boolean }
| { type: 'pagerank'; epsilon?: number; linkProb?: number };