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 1
1
@testset verbose = true " Short-form add_vertex!/add_edge!" begin
2
2
# 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
+ )
4
6
@test add_vertex! (mg, :A )
5
7
@test add_vertex! (mg, :B )
6
8
@test add_edge! (mg, :A , :B )
7
9
8
10
# 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 )
13
17
14
18
# 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