Skip to content

Commit 2fa5b52

Browse files
authored
Update src/graphs.jl
1 parent eb7b67e commit 2fa5b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graphs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function Graphs.add_vertex!(meta_graph::MetaGraph, label, data)
127127
end
128128
nvnum = nv(meta_graph.graph)
129129
add_vertex!(meta_graph.graph)
130-
added = nvnum != nv(meta_graph.graph)
130+
added = nvnum + 1 == nv(meta_graph.graph)
131131
if added
132132
code = nv(meta_graph)
133133
meta_graph.vertex_labels[code] = label

0 commit comments

Comments
 (0)