File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 11@testset verbose = true " Short-form add_vertex!/add_edge!" begin
22 # short-form
3- mg = MetaGraph (Graph (); Label= Symbol, VertexData= Nothing, EdgeData= Nothing)
3+ mg = MetaGraph (
4+ Graph (); label_type= Symbol, vertex_data_type= Nothing, edge_data_type= Nothing
5+ )
46 @test add_vertex! (mg, :A )
57 @test add_vertex! (mg, :B )
68 @test add_edge! (mg, :A , :B )
79
810 # long-form
9- mg′ = MetaGraph (Graph (); Label= Symbol, VertexData= Nothing, EdgeData= Nothing)
10- @test add_vertex! (mg′, :A , nothing )
11- @test add_vertex! (mg′, :B , nothing )
12- @test add_edge! (mg′, :A , :B , nothing )
11+ mg2 = MetaGraph (
12+ Graph (); label_type= Symbol, vertex_data_type= Nothing, edge_data_type= Nothing
13+ )
14+ @test add_vertex! (mg2, :A , nothing )
15+ @test add_vertex! (mg2, :B , nothing )
16+ @test add_edge! (mg2, :A , :B , nothing )
1317
1418 # compare
15- @test mg == mg′
16- end
19+ @test mg == mg2
20+ end
You can’t perform that action at this time.
0 commit comments