graphia-app / graphia

A visualisation tool for the creation and analysis of graphs
https://graphia.app
233 stars 20 forks source link

GML import produces "unspecified error" #75

Closed JamesEarlOwens closed 5 months ago

JamesEarlOwens commented 6 months ago

I get an error upon attempting to open my GML files. This happens with either Generic or Websearch plugin selected. Do GMLs need to be formatted in an unusual way? My GML files open in GEPHI and are standard formatting. Error: [filename].gml could not be opened due to an unspecified error. Thanks for your help and insights.

timangus commented 6 months ago

Could you supply the file that's failing? Or if it's sensitive data some other example that doesn't work?

JamesEarlOwens commented 6 months ago

Sure. Here is a GML file that loads in GEPHI but not in Graphia. I changed the extension to TXT to make it attach. THANK YOU! TEST_all_ngrams_network.gml.txt

timangus commented 6 months ago

The problem appears to be that the id numbers used in the file violate the GML standard in two ways:

Integers GML uses signed 32-bit integers, which are commonly available on all architectures and languages. Larger numbers should be represented as strings. Especially, bitsets with more than 31 entries should be represented as strings.

Strictly speaking Gephi is wrong to accept and parse this file. Graphia's error message is woeful though; I need to improve parsing error messages in general. To solve your issue I suggest that you adjust whatever is generating the file so that the numbers adhere to the above.

JamesEarlOwens commented 6 months ago

Thank you! I checked the GML standards but did not look at those aspects. I really appreciate your time and help finding this error. I'm very excited to start using graphia!