@mapequation/infomap 2.0.2 → 2.3.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 +44 -0
- package/arguments.d.ts +2 -0
- package/index.d.ts +7 -3
- package/index.js +1 -1
- package/network.d.ts +6 -7
- package/package.json +1 -1
- package/parser.d.ts +11 -7
- package/parser.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,50 @@
|
|
|
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.3.0](https://github.com/mapequation/infomap/compare/v2.2.0...v2.3.0) (2022-04-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* Matchable multilayer ids ([c9d28b6](https://github.com/mapequation/infomap/commit/c9d28b6e739731043e0dd6b82d0ae9898f686618)), closes [#279](https://github.com/mapequation/infomap/issues/279)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **js:** Don't call error on worker terminate ([cc57c8c](https://github.com/mapequation/infomap/commit/cc57c8cbafa3ec313426e1356a8140fa6d09c9b5))
|
|
16
|
+
* **js:** More robust heuristic to parse output format type ([33bde00](https://github.com/mapequation/infomap/commit/33bde00775c2fd41fb03b7592ae80633f09e8263))
|
|
17
|
+
* Match multilayer nodes by node and layer ids when using --cluster-data ([b5f6eb3](https://github.com/mapequation/infomap/commit/b5f6eb38d1740559ae93591e659ff8f2f53b7927))
|
|
18
|
+
* **python:** Add no_self_links to api ([b3d903d](https://github.com/mapequation/infomap/commit/b3d903d16e7619edebabe58a9004f40c88ea3614)), closes [#285](https://github.com/mapequation/infomap/issues/285)
|
|
19
|
+
* **python:** Add recorded teleportation keyword argument ([839e1e0](https://github.com/mapequation/infomap/commit/839e1e057b2f7181a87d77758ae00c20aa368891)), closes [#270](https://github.com/mapequation/infomap/issues/270)
|
|
20
|
+
* **python:** Fix matchable multilayer id option ([8377e07](https://github.com/mapequation/infomap/commit/8377e077832eafba1cb989dcad6e24b7a8f87edf))
|
|
21
|
+
|
|
22
|
+
## [2.2.0](https://github.com/mapequation/infomap/compare/v2.1.0...v2.2.0) (2022-03-07)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* Add flow-model, higher-order, and state-level fields to json, tree and clu output ([24125e5](https://github.com/mapequation/infomap/commit/24125e5874cd0599e7274e08a2691855f212186b))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* **js:** More forgiving clu and tree parsing ([4764946](https://github.com/mapequation/infomap/commit/47649466a0ef2a200dc766b1442c7f33a8fec20f))
|
|
33
|
+
* Write json output with --no-infomap ([c0cec87](https://github.com/mapequation/infomap/commit/c0cec8715981f53dd53c3134c8f16e5b4d644717)), closes [#268](https://github.com/mapequation/infomap/issues/268)
|
|
34
|
+
|
|
35
|
+
## [2.1.0](https://github.com/mapequation/infomap/compare/v2.0.2...v2.1.0) (2022-02-11)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* **js:** Add progress event callback ([0fab95b](https://github.com/mapequation/infomap/commit/0fab95bd59717aaf2f36792f2be5a54223e38fab))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
* **js:** Change Typescript types to use mec instead of modularCentrality ([298eed3](https://github.com/mapequation/infomap/commit/298eed32d977758b07af058327775c234340b7b5))
|
|
46
|
+
* **js:** Parse node path as string instead of array of number ([51feb73](https://github.com/mapequation/infomap/commit/51feb73254b17857e4feb27197d4bb8c8157db05))
|
|
47
|
+
* **js:** Validate parsed results and throw instead of returning null on failure ([5f56b94](https://github.com/mapequation/infomap/commit/5f56b94fe0f956483f61a03ef07e94d8def2205e))
|
|
48
|
+
|
|
5
49
|
### [2.0.2](https://github.com/mapequation/infomap/compare/v2.0.1...v2.0.2) (2022-01-31)
|
|
6
50
|
|
|
7
51
|
|
package/arguments.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface Arguments extends Partial<{
|
|
|
7
7
|
weightThreshold: number;
|
|
8
8
|
noSelfLinks: boolean;
|
|
9
9
|
nodeLimit: number;
|
|
10
|
+
matchableMultilayerIds: number;
|
|
10
11
|
assignToNeighbouringModule: boolean;
|
|
11
12
|
metaData: string;
|
|
12
13
|
metaDataRate: number;
|
|
@@ -24,6 +25,7 @@ export interface Arguments extends Partial<{
|
|
|
24
25
|
twoLevel: boolean;
|
|
25
26
|
flowModel: "undirected" | "directed" | "undirdir" | "outdirdir" | "rawdir";
|
|
26
27
|
directed: boolean;
|
|
28
|
+
recordedTeleportation: boolean;
|
|
27
29
|
useNodeWeightsAsFlow: boolean;
|
|
28
30
|
toNodes: boolean;
|
|
29
31
|
teleportationProbability: number;
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import networkToString, { NetworkTypes } from "./network";
|
|
2
1
|
import argumentsToString, { Arguments } from "./arguments";
|
|
3
2
|
import { FileTypes, TreeNode as Node, TreeStateNode as StateNode } from "./filetypes";
|
|
3
|
+
import networkToString, { NetworkTypes } from "./network";
|
|
4
4
|
export interface Changelog {
|
|
5
5
|
body: string | null;
|
|
6
6
|
date: string;
|
|
@@ -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 & {
|
|
@@ -80,8 +83,9 @@ export interface Result {
|
|
|
80
83
|
flow?: string;
|
|
81
84
|
flow_as_physical?: string;
|
|
82
85
|
}
|
|
83
|
-
interface EventCallbacks {
|
|
86
|
+
export 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
|
}
|
|
@@ -105,6 +109,6 @@ declare class Infomap {
|
|
|
105
109
|
}): number;
|
|
106
110
|
protected setHandlers(id: number, events?: EventCallbacks): void;
|
|
107
111
|
protected _terminate(id: number, timeout?: number): Promise<boolean>;
|
|
108
|
-
terminate(id: number, timeout?: number): Promise<
|
|
112
|
+
terminate(id: number, timeout?: number): Promise<boolean>;
|
|
109
113
|
}
|
|
110
114
|
export { Infomap as default, Infomap, changelog, parameters, networkToString, argumentsToString, };
|