Thanks for sharing the link to the code.
Regarding why I’m testing it on a water network: in a water utility working with ArcGIS Utility Network, having a way to visualize or estimate flow direction is essential, especially because Utility Network does not directly expose hydraulic or flow information. Even with the network correctly modeled, technicians cannot visually determine which pipe feeds which, whether there are flow reversals, how a subnetwork behaves after a valve operation, or which areas would be affected during flushing, shutdowns, or maintenance.
Even though water networks are mostly looped, understanding flow is still critical for tasks such as sectorization, hydrant flushing, preventive maintenance, identifying low-turnover areas, and verifying connectivity. Without some kind of flow visualization, Utility Network doesn’t provide this operational clarity.
In geometric networks this capability already existed, so many water utilities expect to retain similar functionality after migrating to Utility Network. That’s why I’m very interested in tools like this sample, even if they are primarily designed for electric distribution.
Thanks again for the update and for confirming that the sample considers all subnetwork controllers. I completely understand that some optimizations were left out for clarity.