I have a line feature class of water mains and another point feature class of fire hydrants. The water mains are inter-connected and the fire hydrants are connected to the tips of the water mains.
Now, I wants trace from a water mains feature to all connected fire hydrants. Are there any functions in arcpy allow me to do so?
You might be out of luck if you are strictly an ArcGis Pro user: This idea post is a coule years old and indicates that geometric network traces are an ArcMap only sort of thing: Support for Geometric Networks in Pro
If your are an ArcMap user, start here: What are geometric networks?—Help | Documentation
In a more advanced way (partially arcpy) you could implement Dijkstra algorithm to check the data in a non geometric network.
without doing any searching there might be an existing python implementation already you could use. If not the algorithm is pretty straightforward.