Graph Algorithm 16