JuliaGraphs / JuliaGraphs/GraphIO.jl
Not obvious that gname arg should be "digraph" rather than "graph" when loading directed graph
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 62
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
I was trying to read in the manhatten.graphml file here with loadgraph(...) with the second gname argument hidden and got the Graph graph not found error.
But the GraphML file in question has only one graph. Looking at this line (https://github.com/JuliaGraphs/GraphIO.jl/blob/master/src/GraphML/GraphML.jl#L57) it appears that if the graph is directed, then we need to give "digraph" as the second argument to loadgraph
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/GraphML/GraphML.jl at line 57 and reproduce loading manhatten.graphml with loadgraph(...) while omitting the second gname argument. Check how the gname value is selected for a directed GraphML file; done means the one-graph file loads without the reported "Graph graph not found" error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100