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

Not obvious that gname arg should be "digraph" rather than "graph" when loading directed graph #35

Open
Shushman opened this issue Nov 17, 2020 · 1 comment

Comments

@Shushman
Copy link

Shushman commented Nov 17, 2020

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

@Shushman Shushman changed the title Not obvious that gname arg should be "digraph rather than graph when directed graph Not obvious that gname arg should be "digraph" rather than "graph" when loading directed graph Nov 17, 2020
@joaopedromattos
Copy link

I had the same issue with GML format... I will go a little further and say that it is not obvious to know what the gname parameter does at all.

Anyway, thanks for the issue, it saved my day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants