-
Notifications
You must be signed in to change notification settings - Fork 28
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 not loading gml file #46
Comments
Can you try using Graphs.jl instead of LightGraphs.jl ? Maybe LightGraphs is not exporting |
hi @filchristou, i am using Julia 1.10.5 (2024-08-27). this is what i did, trying to follow as good as it gets the documentation on the README.md. package installation. using Pkg
Pkg.add("CodecZlib")
Pkg.add("GraphIO")
Pkg.add("Graphs") load gml. using CodecZlib
using GraphIO graph = loadgraph("output/output00000024_neighbor.gml", "graph_key", GMLFormat()) this is the Error i get:
so, something with the installation or loading of the packages seems to go wrong. i tried as well what is mentioned under issue #26 but it did not solve the problem. import CodecZlib
using GraphIO
graph = loadgraph("output/output00000024_neighbor.gml", "graph_key", GMLFormat()) i tried to install the ParserCombinator package too, but there is even written that GraphIOGMLExt not compiles.
could you please help me further? thank you, Elmar |
Hey. Nice post. You make it easy to help you. as described in README you need to do Now julia> loadgraph("gmlfile.gml", GraphIO.GML.GMLFormat()) However I just saw your data.. it looks like you have metadata inside and this is not supported at the moment. Since a while i wanted to get away from MetaGraphs.jl and use MetaGraphsNext.jl instead. |
wow! this is a quick respond. thank you, @filchristou! listen, i am a Python programmer, and this is about my first day walking in Julia. that's being said: a beautiful language you have! some thoughts about the README : this is what I get
this is what I get
parse error as you said! i assume otherwise it would work. what was very helpful from your reply, and not obvious from the README, is that i specify the format with we will use gml with metadata in the future! i will come back to this. but frankly, it will most probably become next summer. thank you once again for this prompt reply. |
Hello guys, Im trying to load a gml file, but I got some issues:
using LightGraphs, ParserCombinator, GraphIO graph = loadgraph("output.gml", "digraph", GraphIO.GML.GMLFormat())
When I execute the source code I always get the following message: ERROR: LoadError: UndefVarError: loadgraph not defined
The text was updated successfully, but these errors were encountered: