3

I saved a .gml from wolfram mathimatica, does anyone have an example of how to load the file and display on a webpage? I am dealing with d3 at the moment, would another language be more appropriate?

Thanks.

Rob
  • 4,927
  • 4
  • 26
  • 41
JSNoob
  • 71
  • 1
  • 2
  • 9

1 Answers1

0

There's a really good post on exactly this at one developer's blog.

The gist of it is that D3, even in its latest version (v4, at the time of writing this), can't import GML files. However, you can convert a GML file into a JSON file, which D3 can read. You can use NetworkX for this conversion.

Alternatively, you may use Gephi to export the edges and nodes to CSV separately.

Tin Man
  • 700
  • 8
  • 29