check_distance_funciton_input

check_distance_funciton_input(distance_func_name, netinfo)[source]

Function checks distance_func_name, if it is specified as ‘default’. Then given the type of the network selects a default distance function.

Parameters:
  • distance_func_name (str) – distance function name.
  • netinfo (dict) – the output of utils.process_input
Returns:

distance_func_name – distance function name.

Return type:

str