pymnet.read_edge_file

pymnet.read_edge_file(inputfile, couplings='categorical', fullyInterconnected=True, directed=False, sep='\t')

Read a multiplex file following the syntax:

layer1{int}|sep|node1{int}|sep|node2{int}|sep|weight{float}

...

layer_l{int}|sep|node_i{int}|sep|node_j{int}|sep|weight_k{float}

Self-links are ignored.

Parameters:
inputfile: str

Name of the input file.

couplingslist, str, tuple, None, MultilayerNetwork

Parameter determining how the layers are coupled, i.e., what inter-layer edges are present. Passed to the constructor of MultiplexNetwork.

fullyInterconnectedbool

If False, nodes having zero degree on a layer are not added to that layer. Default is True.

directed: bool

If True, treat the input file as a directed edge list. Default is False.

sep: str

Column separator. Default is tab character.

Returns:
An instance of MultiplexNetwork.

See also

MultiplexNetwork

The class of the returned object.