@mapequation/infomap 1.9.0 → 2.1.0
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 +56 -0
- package/arguments.d.ts +5 -2
- package/filetypes.d.ts +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/package.json +14 -10
- package/parser.d.ts +10 -6
- package/parser.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,62 @@
|
|
|
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.1.0](https://github.com/mapequation/infomap/compare/v2.0.2...v2.1.0) (2022-02-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **js:** Add progress event callback ([0fab95b](https://github.com/mapequation/infomap/commit/0fab95bd59717aaf2f36792f2be5a54223e38fab))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **js:** Change Typescript types to use mec instead of modularCentrality ([298eed3](https://github.com/mapequation/infomap/commit/298eed32d977758b07af058327775c234340b7b5))
|
|
16
|
+
* **js:** Parse node path as string instead of array of number ([51feb73](https://github.com/mapequation/infomap/commit/51feb73254b17857e4feb27197d4bb8c8157db05))
|
|
17
|
+
* **js:** Validate parsed results and throw instead of returning null on failure ([5f56b94](https://github.com/mapequation/infomap/commit/5f56b94fe0f956483f61a03ef07e94d8def2205e))
|
|
18
|
+
|
|
19
|
+
### [2.0.2](https://github.com/mapequation/infomap/compare/v2.0.1...v2.0.2) (2022-01-31)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* Change json key modularCentrality to mec ([78c7a57](https://github.com/mapequation/infomap/commit/78c7a573914e127bda03a2b8001df321e5bffd04))
|
|
25
|
+
* **js:** Parse directed field in ftree files ([916f54a](https://github.com/mapequation/infomap/commit/916f54a05fb2ffd86ddf0ba297952e85ccfaa5b8))
|
|
26
|
+
* **js:** Pass parseLinks to main parse function and correctly detect multilayer tree files ([0a40ca6](https://github.com/mapequation/infomap/commit/0a40ca6c1606c189f02e691a2fdb74a4494ffbe7))
|
|
27
|
+
* Minify json output ([123c2b1](https://github.com/mapequation/infomap/commit/123c2b10f1e6486135346f8cd546ca0e72fb4d2e)), closes [#260](https://github.com/mapequation/infomap/issues/260)
|
|
28
|
+
|
|
29
|
+
### [2.0.1](https://github.com/mapequation/infomap/compare/v2.0.0...v2.0.1) (2022-01-26)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* Bug in write state network to json ([50f8de2](https://github.com/mapequation/infomap/commit/50f8de2008cf6422693a74279b347d043735200d)), closes [#262](https://github.com/mapequation/infomap/issues/262)
|
|
35
|
+
* **js:** Broken parser due to duplicate variable name ([f437e13](https://github.com/mapequation/infomap/commit/f437e138f7b24140732831e63fac8c28e44e44bf))
|
|
36
|
+
* Use min mass for dangling nodes when regularized ([f741d07](https://github.com/mapequation/infomap/commit/f741d079b04558102130cbbbd742a0ddc3c1c366))
|
|
37
|
+
|
|
38
|
+
## [2.0.0](https://github.com/mapequation/infomap/compare/v1.9.0...v2.0.0) (2022-01-13)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### ⚠ BREAKING CHANGES
|
|
42
|
+
|
|
43
|
+
* Removes --input-format.
|
|
44
|
+
* Removes --include-self-links.
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
* Entropy bias correction ([#258](https://github.com/mapequation/infomap/issues/258)) ([8ea235c](https://github.com/mapequation/infomap/commit/8ea235cf9159fc1a672a0470798ab7e443590fde))
|
|
49
|
+
* 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)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Bug Fixes
|
|
53
|
+
|
|
54
|
+
* Add new feature flags to python and js api ([48245a7](https://github.com/mapequation/infomap/commit/48245a795f87675b62b94b2f8bd8251b71e5f62e))
|
|
55
|
+
* Include self links by default ([#255](https://github.com/mapequation/infomap/issues/255)) ([1f68940](https://github.com/mapequation/infomap/commit/1f68940a90633405f696efa93471ca8cbb25f14c))
|
|
56
|
+
* **example:** Fix building c++ examples ([0d5c063](https://github.com/mapequation/infomap/commit/0d5c0639cb76b9b275388c1a45873496f675aeea)), closes [#252](https://github.com/mapequation/infomap/issues/252)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
* Remove superfluous --input-format flag ([2dd77c4](https://github.com/mapequation/infomap/commit/2dd77c4689c67485454478d739c22c8deb44eda0))
|
|
60
|
+
|
|
5
61
|
## [1.9.0](https://github.com/mapequation/infomap/compare/v1.8.0...v1.9.0) (2021-11-17)
|
|
6
62
|
|
|
7
63
|
|
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
|
@@ -15,7 +15,7 @@ export declare type MetaClu = CluNode<"meta">[];
|
|
|
15
15
|
export declare type TreeNode = {
|
|
16
16
|
path: number[];
|
|
17
17
|
modules?: number[];
|
|
18
|
-
|
|
18
|
+
mec?: number;
|
|
19
19
|
name?: string;
|
|
20
20
|
} & NodeBase;
|
|
21
21
|
export declare type TreeStateNode = TreeNode & StateNodeBase;
|
package/index.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export interface Result {
|
|
|
82
82
|
}
|
|
83
83
|
interface EventCallbacks {
|
|
84
84
|
data?: (output: string, id: number) => void;
|
|
85
|
+
progress?: (progress: number, id: number) => void;
|
|
85
86
|
error?: (message: string, id: number) => void;
|
|
86
87
|
finished?: (result: Result, id: number) => void;
|
|
87
88
|
}
|