ArcGIS Pro 2.8 API Reference Guide
ShortestPathTracer Class
Members 

ArcGIS.Core.Data.UtilityNetwork.Trace Namespace : ShortestPathTracer Class
The ShortestPathTracer returns the shortest path between two starting points.
Object Model
ShortestPathTracer ClassUtilityNetwork Class
Syntax
public class ShortestPathTracer : Tracer 
Public Class ShortestPathTracer 
   Inherits Tracer
Remarks
The definition of "shortest" can be controlled via the TraceConfiguration.ShortestPathNetworkAttribute property. Typically, Shape Length is used. One counterexample might be if you are looking for the shortest path through an underground system. You might prefer a longer path via duct banks, versus a shorter path through a trench that requires excavation, since the excavation might be more costly. In this case, you would set up a network attribute that represents these costs.
Inheritance Hierarchy

System.Object
   ArcGIS.Core.Data.UtilityNetwork.Trace.Tracer
      ArcGIS.Core.Data.UtilityNetwork.Trace.ShortestPathTracer

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

ShortestPathTracer Members
ArcGIS.Core.Data.UtilityNetwork.Trace Namespace