@mapequation/infomap 2.2.0 → 2.4.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 +42 -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 +3 -5
- package/parser.d.ts +0 -21
- package/parser.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,48 @@
|
|
|
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.4.1](https://github.com/mapequation/infomap/compare/v2.4.0...v2.4.1) (2022-05-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* Json output causes segfault ([78e80c5](https://github.com/mapequation/infomap/commit/78e80c581edd92001818abdf50066b798251c604))
|
|
11
|
+
|
|
12
|
+
## [2.4.0](https://github.com/mapequation/infomap/compare/v2.3.0...v2.4.0) (2022-05-24)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **js:** React hook ([c19a819](https://github.com/mapequation/infomap/commit/c19a81917849e27298d00bc1b7c6bde2d66f46c5))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **js-parser:** Parse module level from clu files ([bb91066](https://github.com/mapequation/infomap/commit/bb9106625761716dfabbb240ba39702c110f011a))
|
|
23
|
+
* **js:** Correctly parse clu-files without header ([04c39ea](https://github.com/mapequation/infomap/commit/04c39ea46b716fb10af987a568d5ab226e6ad69d))
|
|
24
|
+
* **python:** Don't allow adding multilayer intra-inter links and ordinary nodes. ([8c3d09c](https://github.com/mapequation/infomap/commit/8c3d09c5c5188c1c94d691beff2c519100b939f9)), closes [#287](https://github.com/mapequation/infomap/issues/287)
|
|
25
|
+
* **python:** Improve constructor and run signatures ([6852e14](https://github.com/mapequation/infomap/commit/6852e142343c91e61a9affe9bcff2897375cf70c)), closes [#286](https://github.com/mapequation/infomap/issues/286)
|
|
26
|
+
* **python:** no_self_links was always set unless include_self_links=True ([9afe5fa](https://github.com/mapequation/infomap/commit/9afe5fa7afbf3f143dd2b8d293be59f572a14c79))
|
|
27
|
+
* **python:** Prevent infinite loop in getMultilevelModules ([1174b66](https://github.com/mapequation/infomap/commit/1174b6658ed5c0bbc2c976223524f5f58e4d6c35)), closes [#284](https://github.com/mapequation/infomap/issues/284)
|
|
28
|
+
* Using deprecated option --include-self-links references missing option --no-loops ([1497bf7](https://github.com/mapequation/infomap/commit/1497bf71fe7a6f5dad725742db8c36a49171eb4d))
|
|
29
|
+
|
|
30
|
+
## [2.3.0](https://github.com/mapequation/infomap/compare/v2.2.0...v2.3.0) (2022-04-13)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* Matchable multilayer ids ([c9d28b6](https://github.com/mapequation/infomap/commit/c9d28b6e739731043e0dd6b82d0ae9898f686618)), closes [#279](https://github.com/mapequation/infomap/issues/279)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
|
|
40
|
+
* **js:** Don't call error on worker terminate ([cc57c8c](https://github.com/mapequation/infomap/commit/cc57c8cbafa3ec313426e1356a8140fa6d09c9b5))
|
|
41
|
+
* **js:** More robust heuristic to parse output format type ([33bde00](https://github.com/mapequation/infomap/commit/33bde00775c2fd41fb03b7592ae80633f09e8263))
|
|
42
|
+
* Match multilayer nodes by node and layer ids when using --cluster-data ([b5f6eb3](https://github.com/mapequation/infomap/commit/b5f6eb38d1740559ae93591e659ff8f2f53b7927))
|
|
43
|
+
* **python:** Add no_self_links to api ([b3d903d](https://github.com/mapequation/infomap/commit/b3d903d16e7619edebabe58a9004f40c88ea3614)), closes [#285](https://github.com/mapequation/infomap/issues/285)
|
|
44
|
+
* **python:** Add recorded teleportation keyword argument ([839e1e0](https://github.com/mapequation/infomap/commit/839e1e057b2f7181a87d77758ae00c20aa368891)), closes [#270](https://github.com/mapequation/infomap/issues/270)
|
|
45
|
+
* **python:** Fix matchable multilayer id option ([8377e07](https://github.com/mapequation/infomap/commit/8377e077832eafba1cb989dcad6e24b7a8f87edf))
|
|
46
|
+
|
|
5
47
|
## [2.2.0](https://github.com/mapequation/infomap/compare/v2.1.0...v2.2.0) (2022-03-07)
|
|
6
48
|
|
|
7
49
|
|
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, };
|