@mapequation/infomap 2.0.1 → 2.2.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 +37 -0
- package/filetypes.d.ts +1 -1
- package/index.d.ts +4 -0
- package/index.js +1 -1
- package/package.json +5 -1
- package/parser.d.ts +11 -6
- package/parser.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,43 @@
|
|
|
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.2.0](https://github.com/mapequation/infomap/compare/v2.1.0...v2.2.0) (2022-03-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* Add flow-model, higher-order, and state-level fields to json, tree and clu output ([24125e5](https://github.com/mapequation/infomap/commit/24125e5874cd0599e7274e08a2691855f212186b))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **js:** More forgiving clu and tree parsing ([4764946](https://github.com/mapequation/infomap/commit/47649466a0ef2a200dc766b1442c7f33a8fec20f))
|
|
16
|
+
* Write json output with --no-infomap ([c0cec87](https://github.com/mapequation/infomap/commit/c0cec8715981f53dd53c3134c8f16e5b4d644717)), closes [#268](https://github.com/mapequation/infomap/issues/268)
|
|
17
|
+
|
|
18
|
+
## [2.1.0](https://github.com/mapequation/infomap/compare/v2.0.2...v2.1.0) (2022-02-11)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* **js:** Add progress event callback ([0fab95b](https://github.com/mapequation/infomap/commit/0fab95bd59717aaf2f36792f2be5a54223e38fab))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* **js:** Change Typescript types to use mec instead of modularCentrality ([298eed3](https://github.com/mapequation/infomap/commit/298eed32d977758b07af058327775c234340b7b5))
|
|
29
|
+
* **js:** Parse node path as string instead of array of number ([51feb73](https://github.com/mapequation/infomap/commit/51feb73254b17857e4feb27197d4bb8c8157db05))
|
|
30
|
+
* **js:** Validate parsed results and throw instead of returning null on failure ([5f56b94](https://github.com/mapequation/infomap/commit/5f56b94fe0f956483f61a03ef07e94d8def2205e))
|
|
31
|
+
|
|
32
|
+
### [2.0.2](https://github.com/mapequation/infomap/compare/v2.0.1...v2.0.2) (2022-01-31)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* Change json key modularCentrality to mec ([78c7a57](https://github.com/mapequation/infomap/commit/78c7a573914e127bda03a2b8001df321e5bffd04))
|
|
38
|
+
* **js:** Parse directed field in ftree files ([916f54a](https://github.com/mapequation/infomap/commit/916f54a05fb2ffd86ddf0ba297952e85ccfaa5b8))
|
|
39
|
+
* **js:** Pass parseLinks to main parse function and correctly detect multilayer tree files ([0a40ca6](https://github.com/mapequation/infomap/commit/0a40ca6c1606c189f02e691a2fdb74a4494ffbe7))
|
|
40
|
+
* Minify json output ([123c2b1](https://github.com/mapequation/infomap/commit/123c2b10f1e6486135346f8cd546ca0e72fb4d2e)), closes [#260](https://github.com/mapequation/infomap/issues/260)
|
|
41
|
+
|
|
5
42
|
### [2.0.1](https://github.com/mapequation/infomap/compare/v2.0.0...v2.0.1) (2022-01-26)
|
|
6
43
|
|
|
7
44
|
|
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
|
@@ -54,6 +54,9 @@ export interface Header {
|
|
|
54
54
|
numTopModules: number;
|
|
55
55
|
relativeCodelengthSavings: number;
|
|
56
56
|
directed: boolean;
|
|
57
|
+
flowModel: string;
|
|
58
|
+
higherOrder: boolean;
|
|
59
|
+
stateLevel?: boolean;
|
|
57
60
|
bipartiteStartId?: number;
|
|
58
61
|
}
|
|
59
62
|
export declare type Tree<NodeType = Required<Node>> = Header & {
|
|
@@ -82,6 +85,7 @@ export interface Result {
|
|
|
82
85
|
}
|
|
83
86
|
interface EventCallbacks {
|
|
84
87
|
data?: (output: string, id: number) => void;
|
|
88
|
+
progress?: (progress: number, id: number) => void;
|
|
85
89
|
error?: (message: string, id: number) => void;
|
|
86
90
|
finished?: (result: Result, id: number) => void;
|
|
87
91
|
}
|