Sovereign 8s.is mirror of standardgalactic/Modeling-roles-and-trade-offs-in-multiplex-networks
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-11-06 11:50:05 -05:00
main.py Refactor matrix operations and clean up code 2025-11-06 11:50:05 -05:00
README.md Update README to reflect new model description 2025-11-02 17:13:24 -05:00
requirements.txt Add dependencies to requirements.txt 2025-11-02 13:34:29 -05:00

Modeling roles and trade-offs in multiplex networks

Official Python 3.8.3 and Pytorch 2.5.1 implementation of the Multiplex Latent Trade-off Model (MLT).

Description

A multiplex social network captures multiple types of social relations among the same set of people, with each layer representing a distinct type of relationship. Understanding the structure of such systems allows us to identify how social exchanges may be driven by a person's own attributes and actions (independence), the status or resources of others (dependence), and mutual influence between entities (interdependence). Characterizing structure in multiplex networks is challenging, as the distinct layers can reflect different yet complementary roles, with interdependence emerging across multiple scales. Here, we introduce the Multiplex Latent Trade-off Model (MLT), a framework for extracting roles in multiplex social networks that accounts for independence, dependence, and interdependence. MLT defines roles as trade-offs, requiring each node to distribute its source and target roles across layers while simultaneously distributing community memberships within hierarchical, multi-scale structures.

Data Availability

Applying the MLT approach to 176 real-world multiplex networks—comprising social, health, and economic layers—from villages in western Honduras, we find that core social-exchange principles emerge, alongside local, layer-specific, and multiscale communities.

Regarding data access, and in accordance with confidentiality constraints for human participants, academic researchers from established institutions may request the data (with IRB approval) by contacting the authors directly. These data are non-transferable to other investigators and are not for commercial use. Any release is subject to the policies in effect at Yale University and the Yale Institute for Network Science at the time of release.

The provided code, by default, operates on randomly generated networks under a directed multiplex SBM, in order to promote open research and to facilitate application to additional networks.

Installation

Create a Python 3.8.3 environment with conda

conda create -n ${env_name} python=3.8.3  

Activate the environment

conda activate ${env_name} 

Please install the required packages

pip install -r requirements.txt

Learning embeddings for multiplex directed networks using MLT

RUN:   python main.py

Reference

Modeling roles and trade-offs in multiplex networks. Nikolaos Nakis, Sune Lehmann, Nicholas A. Christakis, and Morten Mørup, Preprint 25