The paper brings a method showing how a characterizing theorem of the intrval function of a connected graph can be derived from a characterizing theorem of the set of all geodesics in this graph.