@mapequation/infomap 2.8.0 → 2.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arguments.d.ts +1 -1
- package/filetypes.d.ts +11 -11
- package/index.d.ts +3 -3
- package/index.js +1 -1
- package/network.d.ts +3 -3
- package/package.json +12 -10
package/arguments.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type OutputFormats = "clu" | "tree" | "ftree" | "newick" | "json" | "csv" | "network" | "states" | "flow";
|
|
2
2
|
export interface Arguments extends Partial<{
|
|
3
3
|
clusterData: string;
|
|
4
4
|
noInfomap: boolean;
|
package/filetypes.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type NodeBase = {
|
|
2
2
|
id: number;
|
|
3
3
|
flow?: number;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type StateNodeBase = {
|
|
6
6
|
stateId: number;
|
|
7
7
|
layerId?: number;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type CluNode<T extends string = "moduleId"> = {
|
|
10
10
|
[key in T]: number;
|
|
11
11
|
} & NodeBase;
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
12
|
+
export type CluStateNode = CluNode & StateNodeBase;
|
|
13
|
+
export type Clu = CluNode[];
|
|
14
|
+
export type MetaClu = CluNode<"meta">[];
|
|
15
|
+
export type TreeNode = {
|
|
16
16
|
path: number[];
|
|
17
17
|
modules?: number[];
|
|
18
18
|
mec?: number;
|
|
19
19
|
name?: string;
|
|
20
20
|
} & NodeBase;
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
21
|
+
export type TreeStateNode = TreeNode & StateNodeBase;
|
|
22
|
+
export type Tree = TreeNode[];
|
|
23
|
+
export type StateTree = TreeStateNode[];
|
|
24
|
+
export type FileTypes = Clu | MetaClu | Tree | StateTree;
|
|
25
25
|
export default function fileToString(file: FileTypes): string;
|
|
26
26
|
export {};
|
package/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface RequiredParameter extends Parameter<true> {
|
|
|
32
32
|
}
|
|
33
33
|
declare const changelog: Changelog[];
|
|
34
34
|
declare const parameters: (Parameter | RequiredParameter)[];
|
|
35
|
-
export
|
|
35
|
+
export type Module = {
|
|
36
36
|
path: number[];
|
|
37
37
|
enterFlow: number;
|
|
38
38
|
exitFlow: number;
|
|
@@ -60,11 +60,11 @@ export interface Header {
|
|
|
60
60
|
stateLevel?: boolean;
|
|
61
61
|
bipartiteStartId?: number;
|
|
62
62
|
}
|
|
63
|
-
export
|
|
63
|
+
export type Tree<NodeType = Required<Node>> = Header & {
|
|
64
64
|
nodes: NodeType[];
|
|
65
65
|
modules: Module[];
|
|
66
66
|
};
|
|
67
|
-
export
|
|
67
|
+
export type StateTree = Tree<Required<StateNode>>;
|
|
68
68
|
export interface Result {
|
|
69
69
|
clu?: string;
|
|
70
70
|
clu_states?: string;
|