process_input¶
-
process_input
(netin, allowedformats, outputformat='G', forcesparse=False)[source]¶ Takes input network and checks what the input is.
Parameters: - netin (array, dict, or teneto.TemporalNetwork) – Network (graphlet, contact or object)
- allowedformats (list or str) – Which format of network objects that are allowed. Options: ‘C’, ‘TN’, ‘G’.
- outputformat (str, default=G) – Target output format. Options: ‘C’ or ‘G’.
Returns: - C (dict)
- OR
- tnet (array) – Graphlet representation.
- netinfo (dict) – Metainformation about network.
- OR
- tnet (object) – object of teneto.TemporalNetwork class