@@ -57,7 +57,7 @@ function circular_layout(G)
5757 else
5858 # Discard the extra angle since it matches 0 radians.
5959 θ = linspace (0 , 2pi , _nv (G) + 1 )[1 : end - 1 ]
60- return cos (θ), sin (θ)
60+ return cos . (θ), sin . (θ)
6161 end
6262end
6363
@@ -177,7 +177,7 @@ Vector of Vector, Vector of node Vector for each shell.
177177**Examples**
178178```
179179julia> g = graphfamous("karate")
180- julia> nlist = Array( Vector{Int}, 2)
180+ julia> nlist = Array{ Vector{Int}}( 2)
181181julia> nlist[1] = [1:5]
182182julia> nlist[2] = [6:num_vertiecs(g)]
183183julia> locs_x, locs_y = shell_layout(g, nlist)
@@ -188,7 +188,7 @@ function shell_layout(G, nlist::Union{Void, Vector{Vector{Int}}} = nothing)
188188 return [0.0 ], [0.0 ]
189189 end
190190 if nlist == nothing
191- nlist = Array ( Vector{Int}, 1 )
191+ nlist = Array { Vector{Int}} ( 1 )
192192 nlist[1 ] = collect (1 : _nv (G))
193193 end
194194 radius = 0.0
@@ -200,8 +200,8 @@ function shell_layout(G, nlist::Union{Void, Vector{Vector{Int}}} = nothing)
200200 for nodes in nlist
201201 # Discard the extra angle since it matches 0 radians.
202202 θ = linspace (0 , 2pi , length (nodes) + 1 )[1 : end - 1 ]
203- append! (locs_x, radius* cos (θ))
204- append! (locs_y, radius* sin (θ))
203+ append! (locs_x, radius* cos . (θ))
204+ append! (locs_y, radius* sin . (θ))
205205 radius += 1.0
206206 end
207207 locs_x, locs_y
0 commit comments