reachability_latency

Reachability latency.

reachability_latency(tnet=None, paths=None, rratio=1, calc='global')[source]

Reachability latency. This is the r-th longest temporal path.

Parameters:
  • data (array or dict) – Can either be a network (graphlet or contact), binary unidrected only. Alternative can be a paths dictionary (output of teneto.networkmeasure.shortest_temporal_path)
  • rratio (float (default: 1)) – reachability ratio that the latency is calculated in relation to. Value must be over 0 and up to 1. 1 (default) - all nodes must be reached. Other values (e.g. .5 imply that 50% of nodes are reached) This is rounded to the nearest node inter. E.g. if there are 6 nodes [1,2,3,4,5,6], it will be node 4 (due to round upwards)
  • calc (str) – what to calculate. Alternatives: ‘global’ entire network; ‘nodes’: for each node.
Returns:

reach_lat – Reachability latency

Return type:

array

Notes

Reachability latency calculates the time it takes for the paths.

reachability_ratio(paths)[source]