Reference¶
Data Structures¶
Data structures for handling various forms of multilayer networks.
|
General multilayer network with a tensor-like interface. |
|
Multiplex network as a special case of multilayer network. |
|
A node in a MultilayerNetwork. |
Network Models¶
Functions for generating multilayer and multiplex networks using various network models.
|
Multiplex Erdos-Renyi model. |
|
Independent configuration model for multiplex networks. |
|
Generates a realization of a monoplex Erdos-Renyi network. |
|
Generates a realization of configuration model network. |
|
Generate multiplex Erdos-Renyi network which is not fully interconnected. |
|
Generate a full multiplex network. |
|
Generate a full multilayer network. |
|
Generate multilayer Erdos-Renyi network. |
Transforming Networks¶
Functions taking in networks and returning transformed versions of them.
|
Reduces the number of aspects by aggregating them. |
|
Returns an induced subgraph with given set of nodes and layers. |
|
Returns the supra-adjacency matrix and a list of node-layer pairs. |
Reading and Writing Networks¶
Functions for reading and writing networks in different file formats.
|
Read a multiplex file following the syntax. |
|
Write a multiplex file following the syntax. |
|
Read a network in UCINET DL format. |
|
Write a multiplex file separated into files for layers, edges, and nodes. |
|
Write a multiplex network with a single aspect in a JSON format. |
Basic Network Diagnostics¶
|
Returns the degree distribution of a multilayer network. |
|
Returns the density of the network. |
|
Returns a dictionary of degree distributions of each intra-layer network of a multiplex network. |
|
Returns a dictionary of densities of each intra-layer network of a multiplex network. |
Clustering Coefficients¶
Clustering coefficients in multiplex networks.
|
The local clustering coefficient of a node in monoplex network. |
|
Zhang's local clustering coefficient of a node in weighted monoplex network. |
|
Global version of the Zhang's clustering coefficient of a node in weighted monoplex network. |
|
Onnela's local clustering coefficient of a node in weighted monoplex network. |
|
Barrat's local clustering coefficient of a node in weighted monoplex network. |
|
Barrett's local clustering coefficient of a node in multiplex network. |
|
The "cross-layer clustering coefficient" defined by Brodka et al. |
|
Returns number of triangles and connected tuples around the node for each layer. |
|
The local version of the alternating walker clustering coefficient for multiplex networks. |
|
Average value of the local version of the alternating walker clustering coefficient for multiplex networks. |
|
The global version of the alternating walker clustering coefficient for multiplex networks. |
|
The super-node version of the alternating walker clustering coefficient for multiplex networks. |
|
Returns the elementary 3-cycle counts in a multiplex network. |
Visualization¶
Package for visualizing multilayer networks.
Isomorphisms¶
Package for isomorphisms in multilayer networks.
The package is based on reducing multilayer network isomorphism problems to graph isomorphism problems. The graph isomorphism problems can be solved using different backends. Currently the following backends are supported (the functions these backends can be used for are in parenthesis):
NetworkX : “nx” (is_isomorphic, get_isomorphism)
bliss-bind : “bliss_bind” (is_isomorphic, get_isomorphism, get_automorphism_generators, get_complete_invariant)
|
Checks if the two networks are isomorphic. |
|
Returns a value that is a complete invariant under multilayer network isomorphism. |
|
Returns automorphism generators for the given network. |
|
Returns an isomorphism between net1 and net2 if possible. |
Graphlets¶
Package for multiplex graphlet analysis.
If you use this package, please cite:
Sallamari Sallmen, Tarmo Nurmi, and Mikko Kivelä. “Graphlets in multilayer networks.” Journal of Complex Networks 10.2 (2022): cnac005. https://doi.org/10.1093/comnet/cnac005
|
Generate graphlets up to n nodes |
|
Computes the node automorphism orbits of each network in nets |
|
Generate orbit equations for up to n nodes |
|
Compute the orbit counts for all the nodes in net. |
|
Returns the graphlet correlation matrix |
|
Graphlet correlation distance between two networks |
Sampling¶
Package for sampling multilayer subgraphs.
|
A one-aspect multilayer version of the Rand-EnumerateSubgraphs (Rand-ESU) algorithm introduced by Wernicke [1]. |
|
Checks whether a multilayer induced subgraph of the form [nodelist][layerlist] is connected, whether it has no empty layers or nodes, and whether it fulfills the given sizes and intersections requirements. |
|
Checks whether a multilayer induced subgraph of the form [nodelist][layerlist] is connected and does not contain any empty layers or nodes. |