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

GraphML import/export bug/issue #185

Open
wvermeer opened this issue Mar 13, 2018 · 1 comment
Open

GraphML import/export bug/issue #185

wvermeer opened this issue Mar 13, 2018 · 1 comment

Comments

@wvermeer
Copy link

In exporting / exporting using the GraphML file format I found an issue. While exporting from Netlogo worked fine, Gephi is able to correctly opens the outputted files, getting those files imported into R however failed.

Error in .Call("R_igraph_read_graph_graphml", file, as.numeric(index), :
At foreign-graphml.c:1350 : Graph index was too large, Invalid value<

Doing some searching I found this to be a GraphML namespace issue see (https://github.com/igraph/igraph/issues/685). Testing the fix suggested in this link, the issue seems to be an incorrect link to the namesapce. GraphML namespace is http://graphml.graphdrawing.org/xmlns (according to the post) and not http://graphml.graphdrawing.org/xmlns/graphml. This indeed fixed he issue for me.

@qiemem
Copy link
Member

qiemem commented Mar 15, 2018

It looks like this is a problem with the underlying library we're using for graphml export, Jung. Even the latest version of Jung has this bug: https://github.com/jrtom/jung/blob/master/jung-io/src/main/java/edu/uci/ics/jung/io/GraphMLWriter.java#L71

So, not much we can do about this without either writing our own exporter or forking Jung.

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