Looking for open source graph (as in data structure) database engine – Education Career Blog

I’m writing an application that manipulates some sort of social network data, so the ideal underlying data structure is weighted directed graph. I’d like to do the manipulation (and searching) directly on the data, without first loading the entire graph into memory and serializing after.

This could be simulated using a standard SQL database, or key/value store, but that would be very inefficient (for the graph-traversal algorithms I’d like to use, e.g shortest path, etc.).

I’m half a mind to write my own since googling didn’t turn up any useful results, but I’d much rather use an existing solution (if there is any and I missed it) than reinvent the wheel. The project is for fun / personal research, so the software would have to be open source (and prefferably capable of running under Linux).

So, are there any projects that would fit the above description?



If you’re using Java you can try http://neo4j.org/


What about an ODBMS? db40 has Java and .NET implementations, so both run on Linux.


You can also look at a graph as an array of nodes. Where each nodes stores a list of its siblings.

So you could simply store 1 file per node in your graph. Then the contents of that file is the list of nodes it is connected to (pointed to since directed).

Then you can read in a node as you need it.

This allows you to do things like iterate through the whole tree, while only keeping a single node in memory at a time.

Leave a Comment