@mapequation/infomap 2.2.0 → 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 +17 -0
- package/arguments.d.ts +2 -0
- package/index.d.ts +3 -3
- package/index.js +1 -1
- package/network.d.ts +6 -7
- package/package.json +1 -1
- package/parser.d.ts +2 -2
- package/parser.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
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
|
+
|
|
5
22
|
## [2.2.0](https://github.com/mapequation/infomap/compare/v2.1.0...v2.2.0) (2022-03-07)
|
|
6
23
|
|
|
7
24
|
|
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;
|
|
@@ -83,7 +83,7 @@ export interface Result {
|
|
|
83
83
|
flow?: string;
|
|
84
84
|
flow_as_physical?: string;
|
|
85
85
|
}
|
|
86
|
-
interface EventCallbacks {
|
|
86
|
+
export interface EventCallbacks {
|
|
87
87
|
data?: (output: string, id: number) => void;
|
|
88
88
|
progress?: (progress: number, id: number) => void;
|
|
89
89
|
error?: (message: string, id: number) => void;
|
|
@@ -109,6 +109,6 @@ declare class Infomap {
|
|
|
109
109
|
}): number;
|
|
110
110
|
protected setHandlers(id: number, events?: EventCallbacks): void;
|
|
111
111
|
protected _terminate(id: number, timeout?: number): Promise<boolean>;
|
|
112
|
-
terminate(id: number, timeout?: number): Promise<
|
|
112
|
+
terminate(id: number, timeout?: number): Promise<boolean>;
|
|
113
113
|
}
|
|
114
114
|
export { Infomap as default, Infomap, changelog, parameters, networkToString, argumentsToString, };
|