pymnet.graphlets.graphlets

pymnet.graphlets.graphlets(n, layers, n_l=None, couplings=None, allowed_aspects='all')

Generate graphlets up to n nodes

Parameters:
nint

maximum number of nodes

layerslist of layers
n_lint

Number of layers in the generated graphlets, can be smaller than or equal to the number of elements in layers

couplingslist, str, tuple, None, MultilayerNetwork

Parameter determining how the layers are coupled, i.e. what inter-layer edges are present.

allowed_aspectslist, string

the aspects that can be permutated when computing isomorphisms

Returns:
netsdict (key: n_nodes, value: list of MultiplexNetwork objects)

graphlets

invariantsdict (key: complete invariant, value: tuple(index in ‘nets’: n_nodes, index in the list of multiplex networks))

complete invariants of the graphlets, the values can be used to match the graphlets in ‘nets’