PANINIpy

PyPI version ReadTheDocs CI

PANINIpy

PANINIpy: Package of Algorithms for Nonparametric Inference with Networks in Python is a package designed for nonparametric inference with complex network data, with methods for identifying hubs in networks, regionalizing mobility or distributional data over spatial networks, clustering network populations, and constructing hypergraphs from temporal data among other features.

Table of Contents

Installation

pip install paninipy

PyPI

Modules

Binning Temporal Hypergraphs

Identify MDL-optimal temporally contiguous partitions of event data between distinct node sets (e.g. users and products).
Utilizes method derived in “Inference of dynamic hypergraph representations in temporal interaction data” (Kirkley, 2024, https://arxiv.org/abs/2308.16546).

Clustering Network Populations

Generate synthetic network population datasets and perform clustering of observed network populations, multilayer network layers, or temporal networks.
Utilizes method derived in “Compressing network populations with modal networks reveals structural diversity” (Kirkley et al., 2023, https://arxiv.org/pdf/2209.13827).

Regionalization with Distributional Data

Perform MDL-based regionalization on distributional (e.g. census) data over space.
Utilizes method derived in “Spatial regionalization as optimal data compression” (Kirkley, 2022, https://arxiv.org/pdf/2111.01813).

Identifying Network Hubs

Identify hub nodes in a network using different information theoretic criteria.
Utilizes methods derived in “Identifying hubs in directed networks” (Kirkley, 2024, https://arxiv.org/pdf/2312.03347).

Regionalization with Community Detection

Perform community detection-based regionalization on network data.
Utilizes method derived in “Bayesian regionalization of urban mobility networks” (Morel-Balbi and Kirkley, 2024, https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.6.033307).

MDL Network Backbones

Infer global and local backbones of a network using the minimum description length principle .
Utilizes method derived in “Fast nonparametric inference of network backbones for graph sparsification” (Kirkley, 2024, https://arxiv.org/abs/2409.06417).

Documentation

Detailed documentation for each module and function is available at the link below:

PANINIpy Documentation

License

Distributed under the MIT License. See LICENSE for more information.