JuliaGraphs / JuliaGraphs/MetaGraphsNext.jl

loadgraph fails with DOT format

Open
#38 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted
Dominant language
Julia
Stars
93
Forks
24
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied MetaGraphsNext example with savegraph("mwe", complicated, DOTFormat()) and loadgraph("mwe", DOTFormat()). Inspect the savegraph and loadgraph method definitions and their DOTFormat handling. Done means the example loads the saved graph without the reported MethodError.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.