| As an important part of municipal engineering design, municipal drainage design be studied always. Though municipal drainage system design software have a more in-depth research at home and abroad, there are still issues remain unresolved. The main problem sare the limitation that express object using the list structure, the data compatibility of the municipal drainage design software is poor, lacking of uniform standards.In this paper, in-depth study have done for these problems .At first, investigating and analyzing various parts of the drainage network, combining with practical engineering ,graph theory and the theory of constraints, create Data model and constraint model respectively for drainage network. Then the overall design and planning ofMECAD(Municipal Engineering Computer Aided Design) municipal software as a starting point, determining the function modules of drainage system, using the standard template library STL and Boost graph library, achieve the function modules of drainage system by using object-oriented software development method.This article using the object-oriented thinking, using graph theory as the main data structures, and combining municipal drainage project, achieves the main function modules of drainage system. The main innovation of this paper as follows:1. Using newer software design, using the object-oriented software development method to develop the drainage system design software.2. Using graph theory in the municipal drainage system design software, the results is the graph not only express object information more comprehensive, but also the associated information will be more complete, which makes the process object information more efficient, and increase the degree of automation. |