We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f14133 commit fc22225Copy full SHA for fc22225
src/graphs.jl
@@ -51,7 +51,7 @@ Add a vertex to MetaGraph `g` with label `label` having value `val`.
51
Return true if the vertex has been added, false incase the label already exists or vertex was not added.
52
"""
53
function add_vertex!(g::MetaGraph, label, val)
54
- if g.haskey(label)
+ if haskey(g,label)
55
return false
56
added = add_vertex!(g.graph)
57
if added
0 commit comments