@mapequation/infomap 1.7.3 → 2.0.1
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/CHANGELOG.md +53 -0
- package/arguments.d.ts +5 -2
- package/filetypes.d.ts +14 -11
- package/index.d.ts +7 -4
- package/index.js +1 -1
- package/package.json +12 -10
- package/parser.d.ts +16 -0
- package/parser.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,59 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.0.1](https://github.com/mapequation/infomap/compare/v2.0.0...v2.0.1) (2022-01-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* Bug in write state network to json ([50f8de2](https://github.com/mapequation/infomap/commit/50f8de2008cf6422693a74279b347d043735200d)), closes [#262](https://github.com/mapequation/infomap/issues/262)
|
|
11
|
+
* **js:** Broken parser due to duplicate variable name ([f437e13](https://github.com/mapequation/infomap/commit/f437e138f7b24140732831e63fac8c28e44e44bf))
|
|
12
|
+
* Use min mass for dangling nodes when regularized ([f741d07](https://github.com/mapequation/infomap/commit/f741d079b04558102130cbbbd742a0ddc3c1c366))
|
|
13
|
+
|
|
14
|
+
## [2.0.0](https://github.com/mapequation/infomap/compare/v1.9.0...v2.0.0) (2022-01-13)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### ⚠ BREAKING CHANGES
|
|
18
|
+
|
|
19
|
+
* Removes --input-format.
|
|
20
|
+
* Removes --include-self-links.
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* Entropy bias correction ([#258](https://github.com/mapequation/infomap/issues/258)) ([8ea235c](https://github.com/mapequation/infomap/commit/8ea235cf9159fc1a672a0470798ab7e443590fde))
|
|
25
|
+
* Regularized map equation ([#181](https://github.com/mapequation/infomap/issues/181)) ([0673000](https://github.com/mapequation/infomap/commit/06730005329acb4ba781d647e7009d4ff2510ae7)), closes [#256](https://github.com/mapequation/infomap/issues/256)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* Add new feature flags to python and js api ([48245a7](https://github.com/mapequation/infomap/commit/48245a795f87675b62b94b2f8bd8251b71e5f62e))
|
|
31
|
+
* Include self links by default ([#255](https://github.com/mapequation/infomap/issues/255)) ([1f68940](https://github.com/mapequation/infomap/commit/1f68940a90633405f696efa93471ca8cbb25f14c))
|
|
32
|
+
* **example:** Fix building c++ examples ([0d5c063](https://github.com/mapequation/infomap/commit/0d5c0639cb76b9b275388c1a45873496f675aeea)), closes [#252](https://github.com/mapequation/infomap/issues/252)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
* Remove superfluous --input-format flag ([2dd77c4](https://github.com/mapequation/infomap/commit/2dd77c4689c67485454478d739c22c8deb44eda0))
|
|
36
|
+
|
|
37
|
+
## [1.9.0](https://github.com/mapequation/infomap/compare/v1.8.0...v1.9.0) (2021-11-17)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
* **python:** Add API for intra/inter-layer links ([#245](https://github.com/mapequation/infomap/issues/245)) ([aa31ab2](https://github.com/mapequation/infomap/commit/aa31ab22ff8a706f7b1e5bbf75740d35ef5716bf)), closes [#244](https://github.com/mapequation/infomap/issues/244)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* Incorrect one-level codelength for higher-order input ([5a6d1a1](https://github.com/mapequation/infomap/commit/5a6d1a10657c568f0fddf3afd6729a63e3543081)), closes [#182](https://github.com/mapequation/infomap/issues/182)
|
|
48
|
+
* Write "directed", not "1", in cli output notice ([f0a9dc7](https://github.com/mapequation/infomap/commit/f0a9dc722f8e8d5b4ca7e9e30d201f129d210df4))
|
|
49
|
+
|
|
50
|
+
## [1.8.0](https://github.com/mapequation/infomap/compare/v1.7.3...v1.8.0) (2021-11-05)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
* **js:** Add clu and tree javascript parser ([f0c738c](https://github.com/mapequation/infomap/commit/f0c738c2ebbd4d1f43d14b75f82767b30dbfb02f))
|
|
56
|
+
* Add modular centrality score ([31cdd7f](https://github.com/mapequation/infomap/commit/31cdd7fa7a12add63f5b8818e503fe81b3f48555))
|
|
57
|
+
|
|
5
58
|
### [1.7.3](https://github.com/mapequation/infomap/compare/v1.7.2...v1.7.3) (2021-10-26)
|
|
6
59
|
|
|
7
60
|
|
package/arguments.d.ts
CHANGED
|
@@ -2,11 +2,10 @@ declare type OutputFormats = "clu" | "tree" | "ftree" | "newick" | "json" | "csv
|
|
|
2
2
|
export interface Arguments extends Partial<{
|
|
3
3
|
clusterData: string;
|
|
4
4
|
noInfomap: boolean;
|
|
5
|
-
inputFormat: "pajek" | "link-list" | "bipartite" | "multilayer" | "states";
|
|
6
5
|
skipAdjustBipartiteFlow: boolean;
|
|
7
6
|
bipartiteTeleportation: boolean;
|
|
8
7
|
weightThreshold: number;
|
|
9
|
-
|
|
8
|
+
noSelfLinks: boolean;
|
|
10
9
|
nodeLimit: number;
|
|
11
10
|
assignToNeighbouringModule: boolean;
|
|
12
11
|
metaData: string;
|
|
@@ -28,6 +27,10 @@ export interface Arguments extends Partial<{
|
|
|
28
27
|
useNodeWeightsAsFlow: boolean;
|
|
29
28
|
toNodes: boolean;
|
|
30
29
|
teleportationProbability: number;
|
|
30
|
+
regularized: boolean;
|
|
31
|
+
regularizationStrength: number;
|
|
32
|
+
entropyCorrected: boolean;
|
|
33
|
+
entropyCorrectionStrength: number;
|
|
31
34
|
markovTime: number;
|
|
32
35
|
preferredNumberOfModules: number;
|
|
33
36
|
multilayerRelaxRate: number;
|
package/filetypes.d.ts
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
export declare type
|
|
2
|
-
[key in T]: number;
|
|
3
|
-
} & {
|
|
1
|
+
export declare type NodeBase = {
|
|
4
2
|
id: number;
|
|
5
3
|
flow?: number;
|
|
6
4
|
};
|
|
5
|
+
declare type StateNodeBase = {
|
|
6
|
+
stateId: number;
|
|
7
|
+
layerId?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare type CluNode<T extends string = "moduleId"> = {
|
|
10
|
+
[key in T]: number;
|
|
11
|
+
} & NodeBase;
|
|
12
|
+
export declare type CluStateNode = CluNode & StateNodeBase;
|
|
7
13
|
export declare type Clu = CluNode[];
|
|
8
14
|
export declare type MetaClu = CluNode<"meta">[];
|
|
9
|
-
export
|
|
15
|
+
export declare type TreeNode = {
|
|
10
16
|
path: number[];
|
|
11
17
|
modules?: number[];
|
|
12
|
-
|
|
18
|
+
modularCentrality?: number;
|
|
13
19
|
name?: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export interface TreeStateNode extends TreeNode {
|
|
17
|
-
stateId: number;
|
|
18
|
-
layerId?: number;
|
|
19
|
-
}
|
|
20
|
+
} & NodeBase;
|
|
21
|
+
export declare type TreeStateNode = TreeNode & StateNodeBase;
|
|
20
22
|
export declare type Tree = TreeNode[];
|
|
21
23
|
export declare type StateTree = TreeStateNode[];
|
|
22
24
|
export declare type FileTypes = Clu | MetaClu | Tree | StateTree;
|
|
23
25
|
export default function fileToString(file: FileTypes): string;
|
|
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
|
-
declare type Module = {
|
|
35
|
+
export declare type Module = {
|
|
36
36
|
path: number[];
|
|
37
37
|
enterFlow: number;
|
|
38
38
|
exitFlow: number;
|
|
@@ -44,7 +44,7 @@ declare type Module = {
|
|
|
44
44
|
flow: number;
|
|
45
45
|
}[];
|
|
46
46
|
};
|
|
47
|
-
export interface
|
|
47
|
+
export interface Header {
|
|
48
48
|
version: string;
|
|
49
49
|
args: string;
|
|
50
50
|
startedAt: string;
|
|
@@ -55,9 +55,12 @@ export interface Tree<NodeType = Required<Node>> {
|
|
|
55
55
|
relativeCodelengthSavings: number;
|
|
56
56
|
directed: boolean;
|
|
57
57
|
bipartiteStartId?: number;
|
|
58
|
+
}
|
|
59
|
+
export declare type Tree<NodeType = Required<Node>> = Header & {
|
|
58
60
|
nodes: NodeType[];
|
|
59
61
|
modules: Module[];
|
|
60
|
-
}
|
|
62
|
+
};
|
|
63
|
+
export declare type StateTree = Tree<Required<StateNode>>;
|
|
61
64
|
export interface Result {
|
|
62
65
|
clu?: string;
|
|
63
66
|
clu_states?: string;
|
|
@@ -68,7 +71,7 @@ export interface Result {
|
|
|
68
71
|
newick?: string;
|
|
69
72
|
newick_states?: string;
|
|
70
73
|
json?: Tree;
|
|
71
|
-
json_states?:
|
|
74
|
+
json_states?: StateTree;
|
|
72
75
|
csv?: string;
|
|
73
76
|
csv_states?: string;
|
|
74
77
|
net?: string;
|