check_input

check_input(netin, rasie_if_undirected=1, conmat=0)[source]

This function checks that netin input is either graphlet (tnet) or contact (C).

Parameters:
  • netin (array or dict) – temporal network, (graphlet or contact).
  • rasie_if_undirected (int, default=1.) – Options 1 or 0. Error is raised if not found to be tnet or C
  • conmat (int, default=0.) – Options 1 or 0. If 1, input is allowed to be a 2 dimensional connectivity matrix. Allows output to be ‘M’
Returns:

inputtype – String indicating input type. ‘G’,’C’, ‘M’ or ‘U’ (unknown). M is special case only allowed when conmat=1 for a 2D connectivity matrix.

Return type:

str