in reply to Recomendations for a good file format to save graph files.

A matrix can be seen as an Array of Arrays, and as such it can be easily written for example as JSON or YAML. There are plenty of Perl modules for both systems, and libraries are also available for many other languages.

You could also use something as simple as comma separated values, so excel and other spreadsheet apps can read it easily.

  • Comment on Re: Recomendations for a good file format to save graph files.

Replies are listed 'Best First'.
Re^2: Recomendations for a good file format to save graph files.
by jpearl (Scribe) on Mar 24, 2009 at 15:22 UTC
    Thanks Moritz, I would probably lean towards something like JSON, mainly since I'd like to point to other modules/libraries/etc that would easily parse the data without a lot of hassle for any others trying to read the file (hey, use "org.json" you java person). My main concern is other programmers being able to easily read my file. (There are several languages at use here...) At the moment most of our data is stored in flat files that are tab-delimited. I'd like to push for a standardized format, something like XML that's got a lot of pre-constructed parsing options. And that we can store some meaningful tag information in (i.e. <undirected>, <node>, <edge>, etc). Which is why it would be great to have a format specific to graphs.