The invention discloses a
topological graph optimal route algorithm with constraint conditions. The
algorithm includes the following steps that: telecommunication equipment is abstracted to topological nodes, and
optical fiber connections are abstracted to topological links, and as a result a topological matrix can be formed; a source topological node and a destination topological node are selected; an include topological node
list and an include topological link
list are established according to the constraint conditions, and include topological links are converted into include topological nodes, and the include topological nodes are added into the include topological node
list; an avoid topological node list and an avoid topological link list are established according to the constraint conditions, and the topological matrix is updated; and a starting topological node and a finishing topological node which are routed currently are set as Nt and Ne respectively; when Nt is connected with a topological link<t,e>, Nt, Ne and <t,e> are added into an overall
route, otherwise, an
optimal route between Nt and Ne is added into the overall
route; if Ne is the destination topological node, the method terminates, otherwise, the topological matrix is updated according to the
optimal route between Nt and Ne, and next iteration is started. With the
topological graph optimal
route algorithm of the invention adopted, the optimal route can be searched under the constraint conditions, and routing efficiency when the source topological node has a large degree can be improved through the improved Dijkstra algorithm.