
mapequation/infomap
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
mapequation/infomap — это кандидат на навык агента, импортированный из https://github.com/mapequation/infomap.
Обзор
mapequation/infomap — это кандидат на навык агента, импортированный из https://github.com/mapequation/infomap.
Обзор (машинный перевод)
|ci|
Инфокарта
Infomap — это алгоритм кластеризации сетей, основанный на 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
.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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