bensonのアルゴリズムってこれかな?
全然理解できねえw

http://www.fides.dti.ne.jp/~oka-t/benson-algorithm.html