Reference

Data structures

Data structures for handling various forms of multilayer networks.

MultilayerNetwork([aspects, noEdge, …])

General multilayer network with a tensor-like interface.

MultiplexNetwork([couplings, directed, …])

Multiplex network as a special case of multilayer network.

Network models

Functions for generating multilayer and multiplex networks using various network models.

er(n[, p, edges])

Multiplex Erdos-Renyi model.

conf(degs[, degstype, couplings])

Independent configuration model for multiplex networks.

single_layer_er(net, nodes[, p, edges])

Generates a realization of a monoplex Erdos-Renyi network.

single_layer_conf(net, degs[, degstype])

Generates a realization of configuration model network.

er_partially_interconnected(nodes, ps[, …])

Generate multiplex Erdos-Renyi network which is not fully interconnected.

full(nodes, layers[, couplings])

Generate a full multiplex network.

full_multilayer(nodes, layers)

Generate a full multilayer network.

er_multilayer(nodes, layers, p[, randomWeights])

Generate multilayer Erdos-Renyi network.

Transforming Networks

Functions taking in networks and returning transformed versions of them.

aggregate(net, aspects[, newNet, selfEdges])

Reduces the number of aspects by aggregating them.

subnet(net, nodes, *layers, **kwargs)

Returns an induced subgraph with given set of nodes and layers.

supra_adjacency_matrix(net[, includeCouplings])

Returns the supra-adjacency matrix and a list of node-layer pairs.

Reading and Writing Networks

read_ucinet(netinput[, couplings, …])

Reads network in UCINET DL format.

Basic Network Diagnostics

degs(net[, degstype])

Returns the degree distribution of a multilayer network.

density(net)

Returns the density of the network.

multiplex_degs(net[, degstype])

Returns a dictionary of degree distributions of each intra-layer network of a multiplex network.

multiplex_density(net)

Returns a dictionary of densities of each intra-layer network of a multiplex network.

Clustering coefficients

Clustering coefficients in multiplex networks.

lcc(net, node[, undefReturn])

The local clustering coefficient of a node in monoplex network.

cc_zhang(net, node[, undefReturn])

Zhang’s local clustering coefficient of a node in weighted monoplex network.

gcc_zhang(net)

Global version of the Zhang’s clustering coefficient of a node in weighted monoplex network.

cc_onnela(net, node[, undefReturn])

Onnela’s local clustering coefficient of a node in weighted monoplex network.

cc_barrat(net, node[, undefReturn])

Barrat’s local clustering coefficient of a node in weighted monoplex network.

cc_barrett(net, node, anet[, undefReturn])

Barrett’s local clustering coefficient of a node in multiplex network.

lcc_brodka(net, node[, anet, threshold, …])

The “cross-layer clustering coefficient” defined by Brodka et al. .

cc_sequence(net, node)

Returns number of triangles and connected tuples around the node for each layer.

lcc_aw(net, node, layer[, w1, w2, w3, …])

The local version of the alternating walker clustering coefficient for multiplex networks.

avg_lcc_aw(net[, w1, w2, w3, returnCVector, …])

Average value of the local version of the alternating walker clustering coefficient for multiplex networks.

gcc_aw(net[, w1, w2, w3, returnCVector])

The global version of the alternating walker clustering coefficient for multiplex networks.

sncc_aw(net, node[, w1, w2, w3, …])

The super-node version of the alternating walker clustering coefficient for multiplex networks.

elementary_cycles(net[, node, layer, anet])

Returns the elementary 3-cycle counts in a multiplex network.

Visualization

Package for visualizing multilayer networks.

draw(net[, layout, layershape, azim, elev, …])

Visualize a multilayer network.

webplot(net[, outputfile])

Create a 3D visualization of a multiplex network for web using D3.

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)

  • PyBliss : “bliss” (is_isomorphic, get_isomorphism, get_automorphism_generators, get_complete_invariant)

is_isomorphic(net1, net2[, allowed_aspects, …])

Checks if the two networks are isomorphic.

get_complete_invariant(net[, …])

Returns a value that is a complete invariant under multilayer network isomorphism.

get_automorphism_generators(net[, …])

Returns automorphism generators for the given network.

get_isomorphism(net1, net2[, …])

Returns an isomorphism betwee net1 and net2 if possible.