We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02d8186 commit c45086bCopy full SHA for c45086b
src/persistence.jl
@@ -33,12 +33,14 @@ julia> using MetaGraphs
33
julia> using LightGraphs
34
35
julia> test_graph = meta_graph(DiGraph(),
36
- AtVertex = Dict{Symbol, String},
37
- AtEdge = Dict{Symbol, String},
38
- graph_meta = (tag_1 = true, tag_2 = true)
+ AtVertex = Dict{Symbol, Any},
+ AtEdge = Dict{Symbol, Any},
+ graph_meta = (tagged = true,)
39
);
40
41
-julia> push!(test_graph, Dict(:name => "a")); push!(test_graph, Dict(:name => "b"));
+julia> push!(test_graph, Dict(:name => "a", :number => 1));
42
+
43
+julia> push!(test_graph, Dict(:name => "b", :number => 2));
44
45
julia> test_graph[Edge(1, 2)] = Dict(:name => "ab");
46
@@ -47,10 +49,9 @@ julia> mktemp() do file, io
47
49
print(read(file, String))
48
50
end
51
digraph {
- tag_1 = true
- tag_2 = true
52
- 1 [name = "a"]
53
- 2 [name = "b"]
+ tagged = true
+ 1 [name = "a", number = 1]
54
+ 2 [name = "b", number = 2]
55
1 -> 2 [name = "ab"]
56
}
57
```
test/runtests.jl
@@ -41,6 +41,7 @@ rock_paper_scissors_copy = copy(rock_paper_scissors)
@test has_vertex(rock_paper_scissors, rock)
@test issubset(rock_paper, rock_paper_scissors)
@test SimpleDiGraph(rock_paper_scissors) isa SimpleDiGraph
+ @test is_directed(rock_paper_scissors)
@testset "Double check deletion" begin
0 commit comments