Infrastructure.processing_time#

Infrastructure.processing_time(source, target)[source]

Compute the total processing time of all nodes along the path.

Calls path() first to ensure the node list is cached, then sums the processing_time attribute of every node on that path. Returns 0.0 when source and target are the same node or when no path exists.

Parameters:
  • source (str) – The name of the source node.

  • target (str) – The name of the target node.

Returns:

The total processing time along the path, in the same unit as the individual node processing_time attributes.

Return type:

float