题目应该是有向图(至少查询应该是的)...代码这三句多余了..if (to == fa) continue;v[y].push_back(x);v[i].push_back(x);不知道说的对不对...