update for poj1419,Clique + record the road“