@mapequation/infomap 2.1.0 → 2.4.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 CHANGED
@@ -2,6 +2,54 @@
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.0](https://github.com/mapequation/infomap/compare/v2.3.0...v2.4.0) (2022-05-24)
6
+
7
+
8
+ ### Features
9
+
10
+ * **js:** React hook ([c19a819](https://github.com/mapequation/infomap/commit/c19a81917849e27298d00bc1b7c6bde2d66f46c5))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **js-parser:** Parse module level from clu files ([bb91066](https://github.com/mapequation/infomap/commit/bb9106625761716dfabbb240ba39702c110f011a))
16
+ * **js:** Correctly parse clu-files without header ([04c39ea](https://github.com/mapequation/infomap/commit/04c39ea46b716fb10af987a568d5ab226e6ad69d))
17
+ * **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)
18
+ * **python:** Improve constructor and run signatures ([6852e14](https://github.com/mapequation/infomap/commit/6852e142343c91e61a9affe9bcff2897375cf70c)), closes [#286](https://github.com/mapequation/infomap/issues/286)
19
+ * **python:** no_self_links was always set unless include_self_links=True ([9afe5fa](https://github.com/mapequation/infomap/commit/9afe5fa7afbf3f143dd2b8d293be59f572a14c79))
20
+ * **python:** Prevent infinite loop in getMultilevelModules ([1174b66](https://github.com/mapequation/infomap/commit/1174b6658ed5c0bbc2c976223524f5f58e4d6c35)), closes [#284](https://github.com/mapequation/infomap/issues/284)
21
+ * Using deprecated option --include-self-links references missing option --no-loops ([1497bf7](https://github.com/mapequation/infomap/commit/1497bf71fe7a6f5dad725742db8c36a49171eb4d))
22
+
23
+ ## [2.3.0](https://github.com/mapequation/infomap/compare/v2.2.0...v2.3.0) (2022-04-13)
24
+
25
+
26
+ ### Features
27
+
28
+ * Matchable multilayer ids ([c9d28b6](https://github.com/mapequation/infomap/commit/c9d28b6e739731043e0dd6b82d0ae9898f686618)), closes [#279](https://github.com/mapequation/infomap/issues/279)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **js:** Don't call error on worker terminate ([cc57c8c](https://github.com/mapequation/infomap/commit/cc57c8cbafa3ec313426e1356a8140fa6d09c9b5))
34
+ * **js:** More robust heuristic to parse output format type ([33bde00](https://github.com/mapequation/infomap/commit/33bde00775c2fd41fb03b7592ae80633f09e8263))
35
+ * Match multilayer nodes by node and layer ids when using --cluster-data ([b5f6eb3](https://github.com/mapequation/infomap/commit/b5f6eb38d1740559ae93591e659ff8f2f53b7927))
36
+ * **python:** Add no_self_links to api ([b3d903d](https://github.com/mapequation/infomap/commit/b3d903d16e7619edebabe58a9004f40c88ea3614)), closes [#285](https://github.com/mapequation/infomap/issues/285)
37
+ * **python:** Add recorded teleportation keyword argument ([839e1e0](https://github.com/mapequation/infomap/commit/839e1e057b2f7181a87d77758ae00c20aa368891)), closes [#270](https://github.com/mapequation/infomap/issues/270)
38
+ * **python:** Fix matchable multilayer id option ([8377e07](https://github.com/mapequation/infomap/commit/8377e077832eafba1cb989dcad6e24b7a8f87edf))
39
+
40
+ ## [2.2.0](https://github.com/mapequation/infomap/compare/v2.1.0...v2.2.0) (2022-03-07)
41
+
42
+
43
+ ### Features
44
+
45
+ * Add flow-model, higher-order, and state-level fields to json, tree and clu output ([24125e5](https://github.com/mapequation/infomap/commit/24125e5874cd0599e7274e08a2691855f212186b))
46
+
47
+
48
+ ### Bug Fixes
49
+
50
+ * **js:** More forgiving clu and tree parsing ([4764946](https://github.com/mapequation/infomap/commit/47649466a0ef2a200dc766b1442c7f33a8fec20f))
51
+ * Write json output with --no-infomap ([c0cec87](https://github.com/mapequation/infomap/commit/c0cec8715981f53dd53c3134c8f16e5b4d644717)), closes [#268](https://github.com/mapequation/infomap/issues/268)
52
+
5
53
  ## [2.1.0](https://github.com/mapequation/infomap/compare/v2.0.2...v2.1.0) (2022-02-11)
6
54
 
7
55
 
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,7 +83,7 @@ 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;
85
88
  progress?: (progress: number, id: number) => void;
86
89
  error?: (message: string, id: number) => void;
@@ -106,6 +109,6 @@ declare class Infomap {
106
109
  }): number;
107
110
  protected setHandlers(id: number, events?: EventCallbacks): void;
108
111
  protected _terminate(id: number, timeout?: number): Promise<boolean>;
109
- terminate(id: number, timeout?: number): Promise<void>;
112
+ terminate(id: number, timeout?: number): Promise<boolean>;
110
113
  }
111
114
  export { Infomap as default, Infomap, changelog, parameters, networkToString, argumentsToString, };