@mapequation/infomap 2.9.2 → 2.10.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/README.md CHANGED
@@ -1,27 +1,27 @@
1
- # Infomap
1
+ [![CI](https://github.com/mapequation/infomap/actions/workflows/ci.yml/badge.svg)](https://github.com/mapequation/infomap/actions/workflows/ci.yml)
2
+ [![Release](https://github.com/mapequation/infomap/actions/workflows/release.yml/badge.svg)](https://github.com/mapequation/infomap/actions/workflows/release.yml)
2
3
 
3
- This is Infomap compiled as a web worker with Emscripten.
4
+ # @mapequation/infomap
4
5
 
5
- Infomap is a network clustering algorithm based on the [Map equation](//www.mapequation.org/publications.html#Rosvall-Axelsson-Bergstrom-2009-Map-equation).
6
+ `@mapequation/infomap` packages Infomap as a browser web worker built with
7
+ Emscripten.
6
8
 
7
- This package is used in [Infomap Online](//www.mapequation.org/infomap/).
9
+ Infomap is a network clustering algorithm based on the
10
+ [Map equation](https://www.mapequation.org/publications.html#Rosvall-Axelsson-Bergstrom-2009-Map-equation).
11
+ The package is used in [Infomap Online](https://www.mapequation.org/infomap/).
8
12
 
9
- ## Installing
13
+ ## Install
10
14
 
11
- To install, run
12
-
13
- ```shell
15
+ ```bash
14
16
  npm install @mapequation/infomap
15
17
  ```
16
18
 
17
- ## Usage
18
-
19
- If you use ES modules, import the package like this
19
+ ## Use with ES modules
20
20
 
21
- ```javascript
21
+ ```js
22
22
  import Infomap from "@mapequation/infomap";
23
23
 
24
- let network = `#source target [weight]
24
+ const network = `#source target [weight]
25
25
  0 1
26
26
  0 2
27
27
  0 3
@@ -37,56 +37,76 @@ let network = `#source target [weight]
37
37
  5 4
38
38
  5 3`;
39
39
 
40
- let infomap = new Infomap()
40
+ const infomap = new Infomap()
41
41
  .on("data", (data) => console.log(data))
42
- .on("error", (err) => console.warn(err))
42
+ .on("error", (error) => console.warn(error))
43
43
  .on("finished", (data) => console.log(data));
44
44
 
45
- infomap.run(network, "--two-level");
45
+ infomap.run({
46
+ network,
47
+ args: {
48
+ twoLevel: true,
49
+ },
50
+ });
51
+ ```
52
+
53
+ React users can import the hook entrypoint directly from the main package:
54
+
55
+ ```js
56
+ import { useInfomap } from "@mapequation/infomap/react";
46
57
  ```
47
58
 
48
- If you use a CDN, for example JSDelivr, `Infomap` is exported as `window.infomap.default`.
59
+ ## Use from a CDN
49
60
 
50
- For example:
61
+ With JSDelivr, the package is available as `window.infomap.default`.
51
62
 
52
63
  ```html
53
64
  <!doctype html>
54
65
  <html>
55
- <head>
56
- <script type="text/javascript" src="//cdn.jsdelivr.net/npm/@mapequation/infomap@latest/dist/index.min.js"></script>
57
- </head>
58
- <body>
59
- <script type="text/javascript">
60
- const Infomap = window.infomap.default;
61
-
62
- let network = "#--- as above! ---";
63
-
64
- let infomap = new Infomap()
65
- .on("data", data => console.log(data))
66
- .on("error", err => console.warn(err))
67
- .on("finished", data => console.log(data));
68
-
69
- infomap.run(network, "--two-level");
70
- </script>
66
+ <head>
67
+ <script src="https://cdn.jsdelivr.net/npm/@mapequation/infomap@latest/index.umd.js"></script>
68
+ </head>
69
+ <body>
70
+ <script>
71
+ const Infomap = window.infomap.default;
72
+ const network = "#--- same network as above ---";
73
+
74
+ const infomap = new Infomap()
75
+ .on("data", (data) => console.log(data))
76
+ .on("error", (error) => console.warn(error))
77
+ .on("finished", (data) => console.log(data));
78
+
79
+ infomap.run({
80
+ network,
81
+ args: {
82
+ twoLevel: true,
83
+ },
84
+ });
85
+ </script>
86
+ </body>
71
87
  </html>
72
88
  ```
73
89
 
74
- ## Feedback
90
+ ## Package notes
91
+
92
+ - `@mapequation/infomap/react` is the supported React entrypoint.
75
93
 
76
- If you have any questions, suggestions or issues regarding the software, please add them to [GitHub issues](//github.com/mapequation/infomap/issues).
94
+ ## More information
95
+
96
+ - Main docs: [mapequation.org/infomap](https://www.mapequation.org/infomap/)
97
+ - Issues: [github.com/mapequation/infomap/issues](https://github.com/mapequation/infomap/issues)
77
98
 
78
99
  ## Authors
79
100
 
80
101
  Daniel Edler, Anton Holmgren, Martin Rosvall
81
102
 
82
- For contact information, see [mapequation.org/about.html](//www.mapequation.org/about.html).
103
+ Contact details are available at
104
+ [mapequation.org/about.html](https://www.mapequation.org/about.html).
83
105
 
84
106
  ## Terms of use
85
107
 
86
108
  Infomap is released under a dual licence.
87
109
 
88
- To give everyone maximum freedom to make use of Infomap and derivative works,
89
- we make the code open source under the GNU General Public License version 3
90
- or any later version (see LICENSE_GPLv3.txt).
91
-
110
+ The code is available under the GNU General Public License version 3 or any
111
+ later version; see `LICENSE_GPLv3.txt`.
92
112
  For a non-copyleft license, please contact us.
package/README.rst CHANGED
@@ -1,142 +1,236 @@
1
- .. image:: https://github.com/mapequation/infomap/actions/workflows/build.yml/badge.svg
1
+ |ci| |docs| |docker|
2
2
 
3
3
  Infomap
4
4
  =======
5
5
 
6
6
  Infomap is a network clustering algorithm based on the `Map equation`_.
7
+ This repository contains the native CLI, the Python package, the R package,
8
+ the JavaScript web worker, the Docker images, and the source for the
9
+ published Python documentation.
7
10
 
8
- For detailed documentation, see `mapequation.org/infomap`_.
11
+ Start with `mapequation.org/infomap/`_ for the user guide and
12
+ `CHANGELOG.md`_ for release notes.
9
13
 
10
- For a list of recent changes, see `CHANGELOG.md`_ in the source directory.
14
+ For contributing, security reporting, and maintainer workflows, see
15
+ `CONTRIBUTING.md`_, `SECURITY.md`_, `BUILD.md`_, `ARCHITECTURE.md`_, and
16
+ `AGENTS.md`_.
17
+
18
+ .. |ci| image:: https://github.com/mapequation/infomap/actions/workflows/ci.yml/badge.svg
19
+ :target: https://github.com/mapequation/infomap/actions/workflows/ci.yml
20
+ :alt: CI
21
+
22
+ .. |docs| image:: https://github.com/mapequation/infomap/actions/workflows/docs.yml/badge.svg
23
+ :target: https://github.com/mapequation/infomap/actions/workflows/docs.yml
24
+ :alt: Docs
25
+
26
+ .. |docker| image:: https://github.com/mapequation/infomap/actions/workflows/docker-smoke.yml/badge.svg
27
+ :target: https://github.com/mapequation/infomap/actions/workflows/docker-smoke.yml
28
+ :alt: Docker smoke
11
29
 
12
30
  .. _Map equation: https://www.mapequation.org/publications.html#Rosvall-Axelsson-Bergstrom-2009-Map-equation
13
- .. _`mapequation.org/infomap`: https://www.mapequation.org/infomap
31
+ .. _`mapequation.org/infomap/`: https://www.mapequation.org/infomap/
14
32
  .. _`CHANGELOG.md`: https://github.com/mapequation/infomap/blob/master/CHANGELOG.md
33
+ .. _`CONTRIBUTING.md`: https://github.com/mapequation/infomap/blob/master/CONTRIBUTING.md
34
+ .. _`SECURITY.md`: https://github.com/mapequation/infomap/blob/master/SECURITY.md
35
+ .. _`BUILD.md`: https://github.com/mapequation/infomap/blob/master/BUILD.md
36
+ .. _`ARCHITECTURE.md`: https://github.com/mapequation/infomap/blob/master/ARCHITECTURE.md
37
+ .. _`AGENTS.md`: https://github.com/mapequation/infomap/blob/master/AGENTS.md
38
+
39
+ Install
40
+ -------
41
+
42
+ Python package
43
+ ^^^^^^^^^^^^^^
15
44
 
16
- Getting started
17
- ---------------
45
+ Install from `PyPI`_:
46
+
47
+ .. code-block:: bash
48
+
49
+ pip install infomap
50
+
51
+ Upgrades use the usual `pip` flow:
52
+
53
+ .. code-block:: bash
54
+
55
+ pip install --upgrade infomap
18
56
 
19
- Infomap can be installed either from `PyPI`_ using ``pip`` or by
20
- compiling from source.
57
+ The package also installs the ``infomap`` CLI entry point.
58
+ The Python API reference lives at `Infomap Python API`_.
21
59
 
22
- An experimental Javascript version for browsers is available on `NPM`_.
60
+ Quick start with Python:
61
+
62
+ .. code-block:: python
63
+
64
+ from infomap import Infomap, InfomapOptions
65
+
66
+ options = InfomapOptions(two_level=True, silent=True, num_trials=20)
67
+ im = Infomap.from_options(options)
68
+ im.add_link(0, 1)
69
+ im.add_link(1, 2)
70
+ im.run()
71
+
72
+ print(im.num_top_modules, im.codelength)
23
73
 
24
74
  .. _PyPI: https://pypi.org/project/infomap/
75
+ .. _`Infomap Python API`: https://mapequation.github.io/infomap/python/
25
76
 
26
- Using pip
27
- ---------
77
+ R package
78
+ ^^^^^^^^^
28
79
 
29
- A pre-compiled version is available for macOS users.
80
+ Pre-built binaries are published on `r-universe`_; this is the recommended path:
30
81
 
31
- Installing on other operating systems requires a
32
- working ``gcc`` or ``clang`` compiler.
82
+ .. code-block:: r
33
83
 
34
- To install, run::
84
+ install.packages(
85
+ "infomap",
86
+ repos = c("https://mapequation.r-universe.dev", "https://cloud.r-project.org")
87
+ )
35
88
 
36
- pip install infomap
89
+ Quick start with R:
37
90
 
91
+ .. code-block:: r
38
92
 
39
- To upgrade, run::
93
+ library(infomap)
40
94
 
41
- pip install --upgrade infomap
95
+ im <- Infomap(silent = TRUE, two_level = TRUE, num_trials = 20)
96
+ im$add_link(0, 1)
97
+ im$add_link(1, 2)
98
+ im$run()
42
99
 
100
+ print(im$num_top_modules)
101
+ print(im$codelength)
43
102
 
44
- When the Python package is installed, an executable called
45
- ``infomap`` (with lowercase i) is available from any directory.
103
+ See ``?Infomap`` for the user-facing constructor plus the ``InfomapClass``
104
+ method and active-binding reference. The R-specific source README lives at
105
+ `interfaces/R/infomap/README.md`_.
46
106
 
47
- To get started, read `Infomap Python API`_.
107
+ .. _r-universe: https://mapequation.r-universe.dev
108
+ .. _`interfaces/R/infomap/README.md`: https://github.com/mapequation/infomap/blob/master/interfaces/R/infomap/README.md
48
109
 
49
- .. _`Infomap Python API`: https://mapequation.github.io/infomap/python/
110
+ Homebrew CLI
111
+ ^^^^^^^^^^^^
50
112
 
51
- Using Docker
52
- ------------
113
+ If you want the native CLI without the Python package, install the tap and
114
+ formula with:
53
115
 
54
- There are currently two Docker images available on `Docker Hub`_.
116
+ .. code-block:: bash
55
117
 
56
- - ``mapequation/infomap``
57
- - ``mapequation/infomap:notebook`` based on ``jupyter/scipy-notebook``
118
+ brew tap mapequation/infomap
119
+ brew install infomap
58
120
 
59
- The image ``mapequation/infomap`` can be started with
121
+ Or install directly in one command:
60
122
 
61
123
  .. code-block:: bash
62
124
 
63
- docker run -it --rm \
64
- -v `pwd`:/data \
65
- mapequation/infomap
66
- [infomap arguments]
125
+ brew install mapequation/infomap/infomap
126
+
127
+ Upgrade the CLI with the normal Homebrew flow:
128
+
129
+ .. code-block:: bash
130
+
131
+ brew upgrade infomap
67
132
 
68
- You can also use the supplied `docker-compose.yml`_:
133
+ JavaScript package
134
+ ^^^^^^^^^^^^^^^^^^
135
+
136
+ The browser worker package is published on `NPM`_:
69
137
 
70
138
  .. code-block:: bash
71
139
 
72
- docker-compose run --rm infomap
140
+ npm install @mapequation/infomap
141
+
142
+ .. _NPM: https://www.npmjs.com/package/@mapequation/infomap
143
+
144
+ Docker
145
+ ^^^^^^
146
+
147
+ Multi-arch images are published to `GHCR`_ for ``linux/amd64`` and
148
+ ``linux/arm64``:
149
+
150
+ - ``ghcr.io/mapequation/infomap:latest``
151
+ - ``ghcr.io/mapequation/infomap:X.Y.Z``
152
+ - ``ghcr.io/mapequation/infomap:notebook``
153
+ - ``ghcr.io/mapequation/infomap:notebook-X.Y.Z``
154
+
155
+ Run the CLI image with:
156
+
157
+ .. code-block:: bash
158
+
159
+ docker run -it --rm \
160
+ -v "$(pwd)":/data \
161
+ ghcr.io/mapequation/infomap:latest \
162
+ [infomap arguments]
73
163
 
74
- The image ``mapequation/infomap:notebook`` can be started with
164
+ Start the notebook image with:
75
165
 
76
166
  .. code-block:: bash
77
167
 
78
168
  docker run \
79
- -v `pwd`:/home/jovyan/work \
169
+ -v "$(pwd)":/home/jovyan/work \
80
170
  -p 8888:8888 \
81
- mapequation/infomap:notebook \
171
+ ghcr.io/mapequation/infomap:notebook \
82
172
  start.sh jupyter lab
83
173
 
84
- Or similarly, using docker-compose:
174
+ The Dockerfiles in this repository are also smoke-tested in CI and can be
175
+ built locally:
85
176
 
86
177
  .. code-block:: bash
87
178
 
88
- docker-compose up notebook
179
+ docker build -f docker/infomap.Dockerfile -t infomap:local .
180
+ docker build -f docker/notebook.Dockerfile -t infomap:notebook-local .
89
181
 
90
- .. _`Docker Hub`: https://hub.docker.com/r/mapequation/infomap
91
- .. _`docker-compose.yml`: https://github.com/mapequation/infomap/blob/master/docker-compose.yml
182
+ Or use the local Compose file:
92
183
 
93
- Compiling from source
94
- ---------------------
95
-
96
- Installing Infomap from source requires a working ``gcc`` or ``clang`` compiler.
184
+ .. code-block:: bash
97
185
 
98
- To download and compile the newest version from `Github`_, clone the repository
99
- by running
186
+ docker compose run --rm infomap
100
187
 
101
- .. code-block:: shell
188
+ .. _GHCR: https://github.com/mapequation/infomap/pkgs/container/infomap
102
189
 
103
- git clone git@github.com:mapequation/infomap.git
104
- cd infomap
105
- make
190
+ Build from source
191
+ -----------------
106
192
 
107
- This creates the binary ``Infomap``, run it using::
193
+ Building locally requires a working ``gcc`` or ``clang`` toolchain.
108
194
 
109
- ./Infomap [options] network_data destination
195
+ .. code-block:: bash
110
196
 
111
- For a list of options, run::
197
+ git clone git@github.com:mapequation/infomap.git
198
+ cd infomap
199
+ make build-native
112
200
 
113
- ./Infomap --help
201
+ On macOS, the default OpenMP-enabled build may require Homebrew ``libomp``.
202
+ If OpenMP is unavailable, use:
114
203
 
115
- Read `the documentation`_ to learn more about the different options.
204
+ .. code-block:: bash
116
205
 
117
- .. _Github: https://www.github.com/mapequation/infomap
118
- .. _the documentation: https://www.mapequation.org/infomap
206
+ make build-native OPENMP=0
119
207
 
120
- Npm package
121
- -----------
208
+ This creates the ``Infomap`` binary in the repository root.
209
+ Show the available CLI options with:
122
210
 
123
- An experimental Javascript web worker is available on `NPM`_.
211
+ .. code-block:: bash
124
212
 
125
- To install it, run
213
+ ./Infomap --help
126
214
 
127
- .. code-block:: shell
215
+ See ``BUILD.md`` for platform-specific maintainer build details.
128
216
 
129
- npm install @mapequation/infomap
217
+ Maintainers should use:
130
218
 
131
- .. _NPM: https://www.npmjs.com/package/@mapequation/infomap
219
+ - ``BUILD.md`` for local build and verification commands
220
+ - ``RELEASING.md`` for the release flow
221
+ - ``ARCHITECTURE.md`` for ownership and source-of-truth rules
222
+ - ``AGENTS.md`` for repo-local maintenance guidance
223
+ - ``CONTRIBUTING.md`` for pull request and contributor guidance
224
+ - ``SECURITY.md`` for vulnerability reporting
132
225
 
133
226
  Feedback
134
227
  --------
135
228
 
136
- If you have any questions, suggestions or issues regarding the software,
137
- please add them to `GitHub issues`_.
229
+ Usage questions and setup help belong in `GitHub Discussions`_.
230
+ Bug reports and feature requests belong in `GitHub issues`_.
138
231
 
139
- .. _Github issues: http://www.github.com/mapequation/infomap/issues
232
+ .. _`GitHub Discussions`: https://github.com/mapequation/infomap/discussions
233
+ .. _`GitHub issues`: https://github.com/mapequation/infomap/issues
140
234
 
141
235
  Authors
142
236
  -------
@@ -152,11 +246,8 @@ Terms of use
152
246
 
153
247
  Infomap is released under a dual licence.
154
248
 
155
- To give everyone maximum freedom to make use of Infomap
156
- and derivative works, we make the code open source under
157
- the GNU General Public License version 3 or any
158
- later version (see `LICENSE_GPLv3.txt`_).
159
-
249
+ The code is available under the GNU General Public License version 3 or any
250
+ later version; see `LICENSE_GPLv3.txt`_.
160
251
  For a non-copyleft license, please contact us.
161
252
 
162
- .. _LICENSE_GPLv3.txt: https://github.com/mapequation/infomap/blob/master/LICENSE_GPLv3.txt
253
+ .. _`LICENSE_GPLv3.txt`: https://github.com/mapequation/infomap/blob/master/LICENSE_GPLv3.txt
package/arguments.cjs ADDED
@@ -0,0 +1,134 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ // Generated by scripts/generate_binding_options.py from ./Infomap --print-json-parameters.
6
+ // Edit src/io/Config.cpp or interfaces/parameters/overrides.json, then run
7
+ // make build-binding-options.
8
+ function argumentsToString(args) {
9
+ let result = "";
10
+ if (args.skipAdjustBipartiteFlow)
11
+ result += " --skip-adjust-bipartite-flow";
12
+ if (args.bipartiteTeleportation)
13
+ result += " --bipartite-teleportation";
14
+ if (args.weightThreshold != null)
15
+ result += " --weight-threshold " + args.weightThreshold;
16
+ if (args.noSelfLinks)
17
+ result += " --no-self-links";
18
+ if (args.nodeLimit != null)
19
+ result += " --node-limit " + args.nodeLimit;
20
+ if (args.matchableMultilayerIds != null)
21
+ result += " --matchable-multilayer-ids " + args.matchableMultilayerIds;
22
+ if (args.clusterData != null)
23
+ result += " --cluster-data " + args.clusterData;
24
+ if (args.assignToNeighbouringModule)
25
+ result += " --assign-to-neighbouring-module";
26
+ if (args.metaData != null)
27
+ result += " --meta-data " + args.metaData;
28
+ if (args.metaDataRate != null)
29
+ result += " --meta-data-rate " + args.metaDataRate;
30
+ if (args.metaDataUnweighted)
31
+ result += " --meta-data-unweighted";
32
+ if (args.noInfomap)
33
+ result += " --no-infomap";
34
+ if (args.outName != null)
35
+ result += " --out-name " + args.outName;
36
+ if (args.noFileOutput)
37
+ result += " --no-file-output";
38
+ if (args.tree)
39
+ result += " --tree";
40
+ if (args.ftree)
41
+ result += " --ftree";
42
+ if (args.clu)
43
+ result += " --clu";
44
+ if (args.cluLevel != null)
45
+ result += " --clu-level " + args.cluLevel;
46
+ if (args.output != null) {
47
+ if (typeof args.output === "string")
48
+ result += " --output " + args.output;
49
+ else
50
+ result += " --output " + args.output.join(",");
51
+ }
52
+ if (args.hideBipartiteNodes)
53
+ result += " --hide-bipartite-nodes";
54
+ if (args.printAllTrials)
55
+ result += " --print-all-trials";
56
+ if (args.verbose)
57
+ result += " -" + "v".repeat(args.verbose);
58
+ if (args.silent)
59
+ result += " --silent";
60
+ if (args.twoLevel)
61
+ result += " --two-level";
62
+ if (args.flowModel != null)
63
+ result += " --flow-model " + args.flowModel;
64
+ if (args.directed)
65
+ result += " --directed";
66
+ if (args.recordedTeleportation)
67
+ result += " --recorded-teleportation";
68
+ if (args.useNodeWeightsAsFlow)
69
+ result += " --use-node-weights-as-flow";
70
+ if (args.toNodes)
71
+ result += " --to-nodes";
72
+ if (args.teleportationProbability != null)
73
+ result += " --teleportation-probability " + args.teleportationProbability;
74
+ if (args.regularized)
75
+ result += " --regularized";
76
+ if (args.regularizationStrength != null)
77
+ result += " --regularization-strength " + args.regularizationStrength;
78
+ if (args.entropyCorrected)
79
+ result += " --entropy-corrected";
80
+ if (args.entropyCorrectionStrength != null)
81
+ result += " --entropy-correction-strength " + args.entropyCorrectionStrength;
82
+ if (args.markovTime != null)
83
+ result += " --markov-time " + args.markovTime;
84
+ if (args.variableMarkovTime)
85
+ result += " --variable-markov-time";
86
+ if (args.variableMarkovDamping != null)
87
+ result += " --variable-markov-damping " + args.variableMarkovDamping;
88
+ if (args.variableMarkovMinScale != null)
89
+ result += " --variable-markov-min-scale " + args.variableMarkovMinScale;
90
+ if (args.preferredNumberOfModules != null)
91
+ result += " --preferred-number-of-modules " + args.preferredNumberOfModules;
92
+ if (args.multilayerRelaxRate != null)
93
+ result += " --multilayer-relax-rate " + args.multilayerRelaxRate;
94
+ if (args.multilayerRelaxLimit != null)
95
+ result += " --multilayer-relax-limit " + args.multilayerRelaxLimit;
96
+ if (args.multilayerRelaxLimitUp != null)
97
+ result += " --multilayer-relax-limit-up " + args.multilayerRelaxLimitUp;
98
+ if (args.multilayerRelaxLimitDown != null)
99
+ result += " --multilayer-relax-limit-down " + args.multilayerRelaxLimitDown;
100
+ if (args.multilayerRelaxByJsd)
101
+ result += " --multilayer-relax-by-jsd";
102
+ if (args.seed != null)
103
+ result += " --seed " + args.seed;
104
+ if (args.numTrials != null)
105
+ result += " --num-trials " + args.numTrials;
106
+ if (args.coreLoopLimit != null)
107
+ result += " --core-loop-limit " + args.coreLoopLimit;
108
+ if (args.coreLevelLimit != null)
109
+ result += " --core-level-limit " + args.coreLevelLimit;
110
+ if (args.tuneIterationLimit != null)
111
+ result += " --tune-iteration-limit " + args.tuneIterationLimit;
112
+ if (args.coreLoopCodelengthThreshold != null)
113
+ result += " --core-loop-codelength-threshold " + args.coreLoopCodelengthThreshold;
114
+ if (args.tuneIterationRelativeThreshold != null)
115
+ result += " --tune-iteration-relative-threshold " + args.tuneIterationRelativeThreshold;
116
+ if (args.fastHierarchicalSolution)
117
+ result += " -" + "F".repeat(args.fastHierarchicalSolution);
118
+ if (args.innerParallelization)
119
+ result += " --inner-parallelization";
120
+ if (args.preferModularSolution)
121
+ result += " --prefer-modular-solution";
122
+ if (args.numRandomMoves != null)
123
+ result += " --num-random-moves " + args.numRandomMoves;
124
+ if (args.maxDegreeForRandomMoves != null)
125
+ result += " --max-degree-for-random-moves " + args.maxDegreeForRandomMoves;
126
+ if (args.help)
127
+ result += args.help === "advanced" ? " -hh" : " -h";
128
+ if (args.version)
129
+ result += " --version";
130
+ return result;
131
+ }
132
+
133
+ exports.default = argumentsToString;
134
+ //# sourceMappingURL=arguments.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arguments.cjs","sources":["../../../interfaces/js/src/arguments.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;AACA;AACA;AAqFc,SAAU,iBAAiB,CAAC,IAAe,EAAA;IACvD,IAAI,MAAM,GAAG,EAAE;IAEf,IAAI,IAAI,CAAC,uBAAuB;QAAE,MAAM,IAAI,+BAA+B;IAE3E,IAAI,IAAI,CAAC,sBAAsB;QAAE,MAAM,IAAI,4BAA4B;AAEvE,IAAA,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI;AAAE,QAAA,MAAM,IAAI,sBAAsB,GAAG,IAAI,CAAC,eAAe;IAEzF,IAAI,IAAI,CAAC,WAAW;QAAE,MAAM,IAAI,kBAAkB;AAElD,IAAA,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI;AAAE,QAAA,MAAM,IAAI,gBAAgB,GAAG,IAAI,CAAC,SAAS;AAEvE,IAAA,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI;AAAE,QAAA,MAAM,IAAI,8BAA8B,GAAG,IAAI,CAAC,sBAAsB;AAE/G,IAAA,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI;AAAE,QAAA,MAAM,IAAI,kBAAkB,GAAG,IAAI,CAAC,WAAW;IAE7E,IAAI,IAAI,CAAC,0BAA0B;QAAE,MAAM,IAAI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