tnetwork.read_SN_by_com¶
-
tnetwork.
read_SN_by_com
(inputDir, sn_id_transformer=None, **kwargs)[source]¶ Read directory, 1 file = snapshot_affiliations of a snaphshot
By default, the name of the file is used as snapshot id. A function can be passed to associate a different ID snapshot to files
The format to read is:
node1 com1 com2 node2 com1 node3 com2 com3 com4 ...
Parameters: - inputDir – directory
- sn_id_transformer – a function taking a str and
- kwargs – a separator can be passed with parameter separator
Returns: a dynamic community object