hdu3594,the judgement of directed cactus graph