Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadgraph fails with DOT format #38

Open
rusandris opened this issue Oct 31, 2022 · 1 comment
Open

loadgraph fails with DOT format #38

rusandris opened this issue Oct 31, 2022 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@rusandris
Copy link

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?

@gdalle gdalle added the bug Something isn't working label Feb 22, 2023
@gdalle
Copy link
Member

gdalle commented Feb 22, 2023

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 gdalle added the help wanted Extra attention is needed label Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants