In the modern electrical distribution network and utility companies a steady increase in the need for high quality and safe delivery of electricity to consumers is evident, which requires an adequate distribution network, that is a network with high quality voltage and low loss of energy, with a small number of failures and equipment failure , etc. In this paper is proposed a way of representing the mathematical model of distribution networks. For calculations of energy applications, the best way for representation distribution network is in form of graph of the radial structure. By presenting the distribution network in the form of a radial structure graph, which consists of nodes and branches, possible through the use of specialized compensation algorithms for the calculation of steady state and fault analysis. Advantages of these algorithms, as compared to other algorithms are much shorter time needed for calculation and much higher accuracy of calculation results.