Skip to content

Commit f463594

Browse files
authored
Update clone_graph.py
1 parent 508db00 commit f463594

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clone_graph.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# coding: utf-8
22

33
class Solution:
44
# @param node, a undirected graph node
@@ -16,4 +16,6 @@ def cloneGraph(self, node):
1616
self.dict[node] = ret
1717
for neighbor in node.neighbors:
1818
ret.neighbors.append(self.cloneGraph(neighbor))
19-
return ret
19+
return ret
20+
21+
# medium: http://lintcode.com/zh-cn/problem/clone-graph/

0 commit comments

Comments
 (0)