tnetwork.read_interactions

tnetwork.read_interactions(file, frequency=1, format=None, time_first_column=False, sep='\t', columns=None)[source]

Read link stream data

Parameters:
  • file – file to read
  • frequency – frequency of data collection, i.e., smallest possible difference between successive timestamps
  • format – by default, the most efficient format is selected automatically based on encoding length.
  • time_first_column – If there are only 3 columns, you can use True if time is on the first column adn false if it is on the last
  • sep – column separator
  • columns – if there are more than 3 columns, give column names, the used one being “n1”, “n2” and “time”
Returns: