Skip to content

Commit fc22225

Browse files
committed
Corrected
1 parent 6f14133 commit fc22225

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
@@ -51,7 +51,7 @@ Add a vertex to MetaGraph `g` with label `label` having value `val`.
5151
Return true if the vertex has been added, false incase the label already exists or vertex was not added.
5252
"""
5353
function add_vertex!(g::MetaGraph, label, val)
54-
if g.haskey(label)
54+
if haskey(g,label)
5555
return false
5656
added = add_vertex!(g.graph)
5757
if added

0 commit comments

Comments
 (0)