pymnet.net.MultilayerNode

class pymnet.net.MultilayerNode(node, mnet, layers=None)

A node in a MultilayerNetwork.

The node objects are generated from the MultilayerNetwork objects with the __getitem__ method. The nodes can be used to access their neighboring edges, the neighboring edges can be iterated over by iterating the node, and the object contains methods for asking degree and strength of the node.

Methods

deg(*layers)

Return the degree of the node.

deg_in(*layers)

Return the in-degree of the node.

deg_out(*layers)

Return the out-degree of the node.

deg_total(*layers)

Return the total degree of the node.

iter_in()

Iterate over in-neighbors.

iter_out()

Iterate over out-neighbors.

iter_total()

Iterate over all neighbors.

strength(*layers)

Return the weighted degree, i.e. the strength, of the node.

strength_in(*layers)

Return the weighted in-degree, i.e. the strength, of the node.

strength_out(*layers)

Return the weighted out-degree, i.e. the strength, of the node.

strength_total(*layers)

Return the weighted totaldegree, i.e. the strength, of the node.

__init__(node, mnet, layers=None)

A node in a multilayer network.

Methods

__init__(node, mnet[, layers])

A node in a multilayer network.

deg(*layers)

Return the degree of the node.

deg_in(*layers)

Return the in-degree of the node.

deg_out(*layers)

Return the out-degree of the node.

deg_total(*layers)

Return the total degree of the node.

iter_in()

Iterate over in-neighbors.

iter_out()

Iterate over out-neighbors.

iter_total()

Iterate over all neighbors.

strength(*layers)

Return the weighted degree, i.e. the strength, of the node.

strength_in(*layers)

Return the weighted in-degree, i.e. the strength, of the node.

strength_out(*layers)

Return the weighted out-degree, i.e. the strength, of the node.

strength_total(*layers)

Return the weighted totaldegree, i.e. the strength, of the node.