Graph Algorithm 19