Skip to content

Commit 2905da7

Browse files
authored
fix style
1 parent 6a8aa74 commit 2905da7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/graphs.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ function Graphs.add_vertex!(meta_graph::MetaGraph, label, data)
107107
return added
108108
end
109109

110-
function Graphs.add_vertex!(meta_graph::MetaGraph{<:Any, <:Any, <:Any, Nothing}, label)
111-
Graphs.add_vertex!(meta_graph, label, nothing)
110+
function Graphs.add_vertex!(meta_graph::MetaGraph{<:Any,<:Any,<:Any,Nothing}, label)
111+
return Graphs.add_vertex!(meta_graph, label, nothing)
112112
end
113113

114114
"""
@@ -128,9 +128,10 @@ function Graphs.add_edge!(meta_graph::MetaGraph, label_1, label_2, data)
128128
return added
129129
end
130130

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)
131+
function Graphs.add_edge!(
132+
meta_graph::MetaGraph{<:Any,<:Any,<:Any,<:Any,Nothing}, label_1, label_2
133+
)
134+
return Graphs.add_edge!(meta_graph, label_1, label_2, nothing)
134135
end
135136

136137
## Remove vertex

0 commit comments

Comments
 (0)