MetaGraphsNext.jl icon indicating copy to clipboard operation
MetaGraphsNext.jl copied to clipboard

loadgraph fails with DOT format

Open rusandris opened this issue 2 years ago • 1 comments

I can save my metagraph with savegraph but cannot load it with loadgraph:

using Graphs,MetaGraphsNext

complicated = MetaGraph(DiGraph(),
                   VertexData = Dict{Symbol, Int},
                   EdgeData = Dict{Symbol, Int},
                   graph_data = (tagged = true,)
               );

complicated[:a] = Dict(:code_1 => 1, :code_2 => 2);
complicated[:b] = Dict(:code => 2);
complicated[:a, :b] = Dict(:code => 12);

savegraph("mwe",complicated,DOTFormat())
loadgraph("mwe",DOTFormat())

Raises and error message:


ERROR: MethodError: no method matching loadgraph(::IOStream, ::String, ::DOTFormat)

Any ideas how to solve this?

rusandris avatar Oct 31 '22 12:10 rusandris

Hi @rusandris, unfortunately loadgraph is not yet implemented for the DOT format, not sure when it will be. Do you want to try and write up a PR?

gdalle avatar Feb 22 '23 09:02 gdalle