http://leetcode.com/2012/05/clone-graph-part-i.html
原始图存储方式应该不是邻接链表存储图,
struct(vector(A->B),vector(B->A))
如果是的话就太easy了,根据描述推测如下输入存储方式,
graph:(A,B)(B,A)
vector (A,B,A)
代码适用
但对于这个图:
(A,B) (B,A) (C,B)
作者的代码又不适用
这题感觉完全是作者出题不清
不知道我理解对否