pymnet.subnet

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

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

Parameters:
netMultilayerNetwork, MultiplexNetwork

The original network.

nodessequence

The nodes that span the induces subgraph.

*layers*sequence

(Elementary) layers included in the subgraph. One parameter for each aspect.

newNetNone, MultilayerNetwork, MultiplexNetwork

An empty new network or None. If None, the new network is created as a an empty copy of the net. The edges and nodes are copied to this network.

nolinksbool

If set True, this function does not copy any links. That is, the returned network is _not_ an induced subnetwork but an empty network.