Is there any smart way to import gephi graphs (*.gexf) into mathematica ? I mean other than converting to *.gml.

  • $\begingroup$ All supported graph formats are listed in the documentation. $\endgroup$ – Szabolcs Mar 18 '15 at 3:26
  • $\begingroup$ Out of all complex graph formats, Mathematica supports GML the best. I recommend simply converting to GML. $\endgroup$ – Szabolcs May 19 '17 at 18:16

No. Not Natively.

gephiexports = {"CSV", "GDF", "GEXF", "GraphML", "Pajek", "XLS","PDF", "SVG"};
Intersection[gephiexports, $ExportFormats]

(*   {"CSV", "GraphML", "Pajek","PDF", "SVG", "XLS"}   *)

GEXF is an XML based format so you may be able to crib a parser in Mathematica if you really want to.

Update Gephi's website is somewhat contradictory on which is the best format other than GEXF. On the one hand it says GraphML is the next best, on the other it says XLS has the most features. Source here. Given that both these are supported by Mathematica then it appears that apart from Gephi dynamics most things are supported.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.