Before revision:  We present a general algorithmic approach for computing these  distances.
After revision:  We present a general algorithmic approach for computing these graph distances.