-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.d.ts
33 lines (31 loc) · 914 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
export = netClustering;
export as namespace netClustering;
declare namespace netClustering {
var version: string;
interface DataObj {
names: string[];
useWeights: boolean;
distances: any;
}
function buildTreeByCommunities(dataObj: DataObj,showNotes?:boolean): void;
interface TreeNode {
parent: TreeNode;
leftChild: TreeNode;
rightChild: TreeNode;
weight: number;
dQ: number;
}
interface TreeObj {
tree: TreeNode[];
root: TreeNode;
names: string[];
useWeights: boolean;
distances: any;
}
function findSubCommunities(treeObj: TreeObj, depth: number, prevGroup?: any): void;
interface Edge {
source: number | string;
target: number | string;
}
function cluster(nodes: any[], edges: Edge[], clusterAttr?: string, edgesCountAttr?: string): any[];
}