Skip to content

Commit 972d7fa

Browse files
committed
Update curve type
1 parent 31a69e3 commit 972d7fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lines.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function graphline(g::AbstractGraph{T}, locs_x, locs_y, nodesize::Real) where {T
7676
end
7777

7878
function graphcurve(g::AbstractGraph{T}, locs_x, locs_y, nodesize::Vector{<:Real}, arrowlength, angleoffset, outangle=pi/5) where {T<:Integer}
79-
curves = Array{Vector{Tuple{Real,Real}}}(undef, ne(g))
79+
curves = Vector{Vector{Tuple{Float64,Float64}}}(undef, ne(g))
8080
arrows = Array{Vector{Tuple{Float64,Float64}}}(undef, ne(g))
8181
for (e_idx, e) in enumerate(edges(g))
8282
i = src(e)
@@ -104,7 +104,7 @@ function graphcurve(g::AbstractGraph{T}, locs_x, locs_y, nodesize::Vector{<:Real
104104
end
105105

106106
function graphcurve(g, locs_x, locs_y, nodesize::Real, arrowlength, angleoffset, outangle=pi/5)
107-
curves = Array{Vector{Tuple{Real,Real}}}(undef, ne(g))
107+
curves = Vector{Vector{Tuple{Float64,Float64}}}(undef, ne(g))
108108
arrows = Array{Vector{Tuple{Float64,Float64}}}(undef, ne(g))
109109
for (e_idx, e) in enumerate(edges(g))
110110
i = src(e)
@@ -132,7 +132,7 @@ function graphcurve(g, locs_x, locs_y, nodesize::Real, arrowlength, angleoffset,
132132
end
133133

134134
function graphcurve(g, locs_x, locs_y, nodesize::Real, outangle)
135-
curves = Array{Vector{Tuple{Real,Real}}}(undef, ne(g))
135+
curves = Vector{Vector{Tuple{Float64,Float64}}}(undef, ne(g))
136136
for (e_idx, e) in enumerate(edges(g))
137137
i = src(e)
138138
j = dst(e)
@@ -156,7 +156,7 @@ function graphcurve(g, locs_x, locs_y, nodesize::Real, outangle)
156156
end
157157

158158
function graphcurve(g::AbstractGraph{T}, locs_x, locs_y, nodesize::Vector{<:Real}, outangle) where {T<:Integer}
159-
curves = Array{Vector{Tuple{Real,Real}}}(undef, ne(g))
159+
curves = Vector{Vector{Tuple{Float64,Float64}}}(undef, ne(g))
160160
for (e_idx, e) in enumerate(edges(g))
161161
i = src(e)
162162
j = dst(e)

0 commit comments

Comments
 (0)