Skip to content

Commit 106e9e9

Browse files
Fix doctest for Julia 1.6
1 parent eabc104 commit 106e9e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/matrices.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ julia> AdjacencyMatrix(g)
3434
1 1 0 0
3535
3636
julia> AdjacencyMatrix(g) |> Matrix
37-
4×4 Array{Bool,2}:
37+
4×4 Matrix{Bool}:
3838
0 0 1 1
3939
0 0 1 1
4040
1 1 0 0
@@ -71,7 +71,7 @@ julia> gv = ValGraph(star_graph(4), edgeval_types=(Float64,), edgeval_init=(s, d
7171
graph value types: ()
7272
7373
julia> adjacency_matrix(gv)
74-
4×4 AdjacencyMatrix{ValGraph{Int64,Tuple{},Tuple{Float64},Tuple{},Tuple{},Tuple{Array{Array{Float64,1},1}}}}:
74+
4×4 AdjacencyMatrix{ValGraph{Int64, Tuple{}, Tuple{Float64}, Tuple{}, Tuple{}, Tuple{Vector{Vector{Float64}}}}}:
7575
0 1 1 1
7676
1 0 0 0
7777
1 0 0 0
@@ -201,13 +201,13 @@ julia> gv = ValDiGraph(path_digraph(3), edgeval_types=(a=Float64, b=String), ed
201201
graph value types: ()
202202
203203
julia> ValMatrix(gv, 1, 0.0)
204-
3×3 ValMatrix{Float64,ValDiGraph{Int64,Tuple{},NamedTuple{(:a, :b),Tuple{Float64,String}},Tuple{},Tuple{},NamedTuple{(:a, :b),Tuple{Array{Array{Float64,1},1},Array{Array{String,1},1}}}},1}:
204+
3×3 ValMatrix{Float64, ValDiGraph{Int64, Tuple{}, NamedTuple{(:a, :b), Tuple{Float64, String}}, Tuple{}, Tuple{}, NamedTuple{(:a, :b), Tuple{Vector{Vector{Float64}}, Vector{Vector{String}}}}}, 1}:
205205
0.0 0.823648 0.0
206206
0.0 0.0 0.823648
207207
0.0 0.0 0.0
208208
209209
julia> ValMatrix(gv, :b, nothing)
210-
3×3 ValMatrix{Union{Nothing, String},ValDiGraph{Int64,Tuple{},NamedTuple{(:a, :b),Tuple{Float64,String}},Tuple{},Tuple{},NamedTuple{(:a, :b),Tuple{Array{Array{Float64,1},1},Array{Array{String,1},1}}}},:b}:
210+
3×3 ValMatrix{Union{Nothing, String}, ValDiGraph{Int64, Tuple{}, NamedTuple{(:a, :b), Tuple{Float64, String}}, Tuple{}, Tuple{}, NamedTuple{(:a, :b), Tuple{Vector{Vector{Float64}}, Vector{Vector{String}}}}}, :b}:
211211
nothing "1-2" nothing
212212
nothing nothing "2-3"
213213
nothing nothing nothing

0 commit comments

Comments
 (0)