
mapequation/infomap
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
mapequation/infomapは、[[T0]からインポートされたエージェントスキル候補です。
概要
mapequation/infomapは、[[T0]からインポートされたエージェントスキル候補です。
概要(AI 翻訳)
|ci|
インフォマップ
インフォマップは、Map equation_に基づくネットワーククラスタリングアルゴリズムです。
このリポジトリにはネイティブCLI、Pythonパッケージ、Rパッケージが含まれています。
JavaScriptブラウザワーカーおよびNode.jsそのパッケージ、Dockerイメージ、
チュートリアルノートブック、そして公開されたPythonドキュメントのソース。
ユーザーガイドについてはmapequation.org/infomap/から始めます。
Infomap Python API は Python の例やチュートリアルノートブック用であり、
CHANGELOG.md_ はリリースノートのためです。
貢献、セキュリティ報告、メンテナのワークフローについては、こちらをご覧ください
CONTRIBUTING.md、SECURITY.md、BUILD.md、ARCHITECTURE.md、そして
AGENTS.md_。
…|ci|画像:: https://github.com/mapequation/infomap/actions/workflows/ci.yml/badge.svg :ターゲット:https://github.com/mapequation/infomap/actions/workflows/ci.yml :alt: CI
…Map式:https://www.mapequation.org/publications.html?utm_source=infomap&utm_medium=readme&utm_campaign=infomap#Rosvall-Axelsson-Bergstrom-2009-Map-equation
…mapequation.org/infomap/: https://www.mapequation.org/infomap/?utm_source=infomap&utm_medium=readme&utm_campaign=infomap
…_CHANGELOG.md: https://github.com/mapequation/infomap/blob/master/CHANGELOG.md
.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
|ci|
Infomap
Infomap is a network clustering algorithm based on the Map equation_.
This repository contains the native CLI, the Python package, the R package,
the JavaScript browser worker and Node.js package, the Docker images, the
tutorial notebooks, and the source for the published Python documentation.
Start with mapequation.org/infomap/_ for the user guide, the
Infomap Python API_ for Python examples and tutorial notebooks, and
CHANGELOG.md_ for release notes.
For contributing, security reporting, and maintainer workflows, see
CONTRIBUTING.md, SECURITY.md, BUILD.md, ARCHITECTURE.md, and
AGENTS.md_.
… |ci| image:: https://github.com/mapequation/infomap/actions/workflows/ci.yml/badge.svg :target: https://github.com/mapequation/infomap/actions/workflows/ci.yml :alt: CI
… _Map equation: https://www.mapequation.org/publications.html?utm_source=infomap&utm_medium=readme&utm_campaign=infomap#Rosvall-Axelsson-Bergstrom-2009-Map-equation
… _mapequation.org/infomap/: https://www.mapequation.org/infomap/?utm_source=infomap&utm_medium=readme&utm_campaign=infomap
… _CHANGELOG.md: https://github.com/mapequation/infomap/blob/master/CHANGELOG.md
… _CONTRIBUTING.md: https://github.com/mapequation/infomap/blob/master/CONTRIBUTING.md
… _SECURITY.md: https://github.com/mapequation/infomap/blob/master/SECURITY.md
… _BUILD.md: https://github.com/mapequation/infomap/blob/master/BUILD.md
… _ARCHITECTURE.md: https://github.com/mapequation/infomap/blob/master/ARCHITECTURE.md
… _AGENTS.md: https://github.com/mapequation/infomap/blob/master/AGENTS.md
Install
Python package ^^^^^^^^^^^^^^
Install from PyPI_:
… code-block:: bash
pip install infomap
Install optional integrations for common Python graph and analysis workflows:
… code-block:: bash
pip install "infomap[networkx]"
pip install "infomap[igraph]"
pip install "infomap[pandas]"
Upgrades use the usual pip flow:
… code-block:: bash
pip install --upgrade infomap
The package also installs the infomap CLI entry point.
The Python API reference lives at Infomap Python API_.
Quick start with Python:
… code-block:: python
import networkx as nx
import infomap
graph = nx.karate_club_graph()
result = infomap.run(graph, seed=123, num_trials=20)
print(result.num_top_modules, result.codelength)
print(result.modules()) # {node_id: module_id}
infomap.run accepts a NetworkX or igraph graph, a SciPy sparse matrix, a
(2, E) edge index, a network file path, or an iterable of links. It returns
an immutable Result. If you only need the communities in the graph’s own
node labels, use infomap.find_communities(graph, seed=123, num_trials=20),
which returns a NetworkX-style list of set\ s of node labels. Its igraph
counterpart infomap.find_igraph_communities returns an
igraph.VertexClustering.
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add mapequation/infomap