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 6a8aa74 commit 2905da7Copy full SHA for 2905da7
src/graphs.jl
@@ -107,8 +107,8 @@ function Graphs.add_vertex!(meta_graph::MetaGraph, label, data)
107
return added
108
end
109
110
-function Graphs.add_vertex!(meta_graph::MetaGraph{<:Any, <:Any, <:Any, Nothing}, label)
111
- Graphs.add_vertex!(meta_graph, label, nothing)
+function Graphs.add_vertex!(meta_graph::MetaGraph{<:Any,<:Any,<:Any,Nothing}, label)
+ return Graphs.add_vertex!(meta_graph, label, nothing)
112
113
114
"""
@@ -128,9 +128,10 @@ function Graphs.add_edge!(meta_graph::MetaGraph, label_1, label_2, data)
128
129
130
131
-function Graphs.add_edge!(meta_graph::MetaGraph{<:Any, <:Any, <:Any, <:Any, Nothing},
132
- label_1, label_2)
133
- Graphs.add_edge!(meta_graph, label_1, label_2, nothing)
+function Graphs.add_edge!(
+ meta_graph::MetaGraph{<:Any,<:Any,<:Any,<:Any,Nothing}, label_1, label_2
+)
134
+ return Graphs.add_edge!(meta_graph, label_1, label_2, nothing)
135
136
137
## Remove vertex
0 commit comments