This article is aimed at analyzing different methods of calculation of railway capacity of lines and applying them in "Lithuanian Railways", improving efficiency of railroad traffic management by using new and modern technologies, integrated into the new Traffic Management Centre (TMC) and its related systems, allowing the compression of railroad traffic schedule and facilitating conflict resolution during planning time by using new technologies. To assure new traffic prevision for "Lithuanian Railways", a new calculation method must be used, as today it is being used an old analytical method for capacity calculation on railway line, and this old calculation method does not allow the optimization of the use of the railway network. It is necessary to analyze new programming methods for calculating the train graph and its compression to adopt it in order to optimize the use of the network. This paper will present three methods used for calculating capacity consumption on railway lines and the results of applying one of them, the UIC 406 method, in a practice case. The practice case consist of adding two new trains in an already calculated schedule for the increment of the use of a line, using the new techniques for automatically detect the conflicts that appear after adding these new trains and solving the conflict. This paper will also present the statistical of how passenger's train demand increases passengers flow.