/multinet

Multiplex network package

Primary LanguagePythonMIT LicenseMIT

multinet

Continuous Integration Status Code Coverage Status

multinet is a networkx extension to handle multiplex network. It contains some useful function to handle operations that specific to multiplex network and it's still pretty much compatible with networkx functions as the aggregated network.

It is currently still in progress.

Install

Install from the source:

$  pip install .

Simple Example

A two layer multiplex network:

>>> import multinet as mn
>>> mg = mn.Multinet()
>>> mg.add_node(1)
>>> mg.add_node(2)
>>> mg.add_edge(1, 2, 'Layer_1')
>>> mg.add_edge(1, 2, 'Layer_2')
>>> mg.number_of_layers()
2