2.7.1 • Published 1 year ago

@mapequation/infomap v2.7.1

Weekly downloads
26
License
AGPL-3.0-or-later
Repository
github
Last release
1 year ago

Infomap

This is Infomap compiled as a web worker with Emscripten.

Infomap is a network clustering algorithm based on the Map equation.

This package is used in Infomap Online.

Installing

To install, run

npm install @mapequation/infomap

Usage

If you use ES modules, import the package like this

import Infomap from "@mapequation/infomap";

let network = `#source target [weight]
0 1
0 2
0 3
1 0
1 2
2 1
2 0
3 0
3 4
3 5
4 3
4 5
5 4
5 3`;

let infomap = new Infomap()
  .on("data", (data) => console.log(data))
  .on("error", (err) => console.warn(err))
  .on("finished", (data) => console.log(data));

infomap.run(network, "--two-level");

If you use a CDN, for example JSDelivr, Infomap is exported as window.infomap.default.

For example:

<!doctype html>
<html>
    <head>
        <script type="text/javascript" src="//cdn.jsdelivr.net/npm/@mapequation/infomap@latest/dist/index.min.js"></script>
    </head>
    <body>
        <script type="text/javascript">
            const Infomap = window.infomap.default;

            let network = "#--- as above! ---";

            let infomap = new Infomap()
                .on("data", data => console.log(data))
                .on("error", err => console.warn(err))
                .on("finished", data => console.log(data));

            infomap.run(network, "--two-level");
        </script>
</html>

Feedback

If you have any questions, suggestions or issues regarding the software, please add them to GitHub issues.

Authors

Daniel Edler, Anton Holmgren, Martin Rosvall

For contact information, see mapequation.org/about.html.

Terms of use

Infomap is released under a dual licence.

To give everyone maximum freedom to make use of Infomap and derivative works, we make the code open source under the GNU Affero General Public License version 3 or any later version (see LICENSE_AGPLv3.txt).

For a non-copyleft license, please contact us.

2.7.0

1 year ago

2.7.1

1 year ago

2.6.1

2 years ago

2.6.0

2 years ago

2.4.1

2 years ago

2.4.0

2 years ago

2.5.0

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.0.2

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.9.0

2 years ago

1.8.0

3 years ago

1.7.3

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago

1.0.0-beta.59

4 years ago

1.0.0-beta.58

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago