poj 1737 Connected Graph