When unexpected events such as road block, closure and damage caused by some major events occur, they will have an impact on people's daily life. With the gradual popularization of 5g network, the application of UAV is becoming more and more extensive. This paper mainly studies the "emergency material distribution problem in 5g network environment". It analyzes the two cases of separate distribution of distribution vehicles and the combined distribution of "distribution vehicles + UAVs" respectively. In order to complete the material distribution task as soon as possible, it puts forward the best distribution scheme respectively. First, the optimal time is simplified, that is, the optimal time is converted into the shortest path, and the graph theory model is used for modeling. The path graph is highlighted by MATLAB, and the minimum spanning tree method is used to visualize all paths. After that, the shortest path from the ninth point to any point and the sequence of several traveling paths are obtained. The sequence of several traveling paths is classified into three schemes, and the total kilometers of the three schemes are calculated respectively. The best scheme is the one with the smallest total number of paths. For the best scheme, the path map of the best scheme is obtained by drawing. Secondly, the combined distribution mode of "distribution vehicle + UAV" is adopted for material transportation. Nowadays, 5g network is becoming more and more popular, and UAVs are more and more widely used. In order to complete the material distribution task as soon as possible, it is assumed that UAVs are used to transport materials to the greatest extent to reduce the transportation time and improve the efficiency. Visualize the path of "distribution vehicle + UAV" for subsequent problem solving. The aircraft route is divided into "three consecutive sections" and "two consecutive sections". After a large amount of data processing, the classification scheme is obtained. Combined with the vehicle optimal path, the best scheme of "distribution vehicle + UAV" combination to complete a complete distribution is obtained. Finally, the maximum load capacity of the delivery vehicle is 500 kg, and the other conditions are the same as above. Based on the obtained optimal scheme, the second question is solved by MATLAB for the constraints given in the question, and two feasible schemes are obtained. The frequency of UAV use in both schemes is greater than that of distribution vehicles. Disassemble and analyze scheme 1 and scheme 2 respectively.