pymnet.write_edge_file¶
- pymnet.write_edge_file(net, outputfile, sep='\t', weights=True, numericNodes=False)¶
Write 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:
- net: MultiplexNetwork
The MultiplexNetwork object to write.
- outputfile: str
Name of the output file.
- sep: str
Column separator. Default is tab character.
- weights: bool
If True, include edge weights in the output. Default is True.
- numericNodes: bool
If True, map node names to numbers. Default is False.