SWMM5 has Topological sorting of conveyance network links in toposort.c It sorts the network for kinematic wave but also finds the degree of number of links out of a node. An upstream node has a negative degree and an outfall has a degree of zero. The degree of the node is used to determine the node composition for the OUTFLOWS file in SWMM 5. Figure 1 shows the node degrees for a sample network.
Figure 1. The - node degrees for a sample network. |