The paper gives a new proof of a characterization of the interval function of a connected graph and a characterization of geodetic graphs.