|
32 | 32 | @test d_separation(dag, :x, [:v]; cset=:u, debug=false) == false |
33 | 33 | @test d_separation(dag, [:x], :v; cset=:s1, debug=false) == false |
34 | 34 |
|
| 35 | + include("test_descendents_02.jl") |
| 36 | + @test d_separation(dag, :k1, :v, cset=[:x1]) == true |
| 37 | + @test d_separation(dag, :k1, :v, cset=[:w]) == true |
| 38 | + @test d_separation(dag, :k1, :x1, cset=[:w]) == true |
| 39 | + @test d_separation(dag, :k1, :x2, cset=[:v]) == true |
| 40 | + @test d_separation(dag, :k1, :x2, cset=[:x1]) == true |
| 41 | + @test d_separation(dag, :k1, :x2, cset=[:w]) == true |
| 42 | + @test d_separation(dag, :k1, :x3, cset=[:w]) == true |
| 43 | + @test d_separation(dag, :k1, :y, cset=[:k2, :x2, :x3]) == true |
| 44 | + @test d_separation(dag, :k1, :y, cset=[:k2, :v, :x3]) == true |
| 45 | + @test d_separation(dag, :k1, :y, cset=[:k2, :x1, :x3]) == true |
| 46 | + @test d_separation(dag, :k1, :y, cset=[:k2, :w]) == true |
| 47 | + @test d_separation(dag, :k2, :v, cset=[:x1]) == true |
| 48 | + @test d_separation(dag, :k2, :v, cset=[:w]) == true |
| 49 | + @test d_separation(dag, :k2, :v, cset=[:k1]) == true |
| 50 | + @test d_separation(dag, :k2, :w, cset=[:k1]) == true |
| 51 | + @test d_separation(dag, :k2, :x1, cset=[:w]) == true |
| 52 | + @test d_separation(dag, :k2, :x1, cset=[:k1]) == true |
| 53 | + @test d_separation(dag, :k2, :x2, cset=[:v]) == true |
| 54 | + @test d_separation(dag, :k2, :x2, cset=[:x1]) == true |
| 55 | + @test d_separation(dag, :k2, :x2, cset=[:w]) == true |
| 56 | + @test d_separation(dag, :k2, :x2, cset=[:k1]) == true |
| 57 | + @test d_separation(dag, :k2, :x3, cset=[:w]) == true |
| 58 | + @test d_separation(dag, :k2, :x3, cset=[:k1]) == true |
| 59 | + @test d_separation(dag, :v, :w; cset=:x1) == true |
| 60 | + @test d_separation(dag, :v, :x3) == true |
| 61 | + @test d_separation(dag, :v, :y; cset=[:k2, :x2, :x3]) == true |
| 62 | + @test d_separation(dag, :v, :y; cset=[:k1, :x2, :x3]) == true |
| 63 | + @test d_separation(dag, :v, :y; cset=[:w, :x2, :x3]) == true |
| 64 | + @test d_separation(dag, :v, :y; cset=[:x2, :x1]) == true |
| 65 | + @test d_separation(dag, :w, :x2; cset=[:v]) == true |
| 66 | + @test d_separation(dag, :w, :x2; cset=[:x1]) == true |
| 67 | + @test d_separation(dag, :w, :y; cset=[:k2, :x2, :x3]) == true |
| 68 | + @test d_separation(dag, :w, :y; cset=[:k2, :v, :x3]) == true |
| 69 | + @test d_separation(dag, :w, :y; cset=[:k1, :x2, :x3]) == true |
| 70 | + @test d_separation(dag, :w, :y; cset=[:k1, :v, :x3]) == true |
| 71 | + @test d_separation(dag, :w, :y; cset=[:k1, :x1, :x3]) == true |
| 72 | + @test d_separation(dag, :w, :y; cset=[:k2, :x2, :x3]) == true |
| 73 | + @test d_separation(dag, :x1, :x2; cset=[:v]) == true |
| 74 | + @test d_separation(dag, :x1, :x3) == true |
| 75 | + @test d_separation(dag, :x1, :y; cset=[:k2, :x2, :x3]) == true |
| 76 | + @test d_separation(dag, :x1, :y; cset=[:k1, :x2, :x3]) == true |
| 77 | + @test d_separation(dag, :x1, :y; cset=[:w, :x2, :x3]) == true |
| 78 | + @test d_separation(dag, :x1, :y; cset=[:k2, :v, :x3]) == true |
| 79 | + @test d_separation(dag, :x1, :y; cset=[:k1, :v, :x3]) == true |
| 80 | + @test d_separation(dag, :x1, :y; cset=[:v, :w, :x3]) == true |
| 81 | + @test d_separation(dag, :x2, :x3) == true |
| 82 | + |
35 | 83 | end |
36 | 84 |
|
37 | 85 | @testset "Methods" begin |
|
0 commit comments