Skip to content

Commit e6bcc7d

Browse files
committed
cast vertices from UVertex to DVertex
1 parent f657b6b commit e6bcc7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/roads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@
3535

3636
# turn the vertex parent information into a tree, it's a dict that maps a
3737
# vertex to its parent.
38-
tree = DGraph.Dict(parents)
38+
tree = DGraph.Dict(parents, copy=True)
3939
tree.showgraph() # display it via the browser

0 commit comments

Comments
 (0)