Storing Graph in MongoDB

853 views
Skip to first unread message

elangovans

unread,
Apr 6, 2011, 1:05:40 PM4/6/11
to mongodb-user
Hi all, I am new here. In our team, we are using MongoDB for storing
XML data in our data integration platform. I have some use cases where
I would like to store data in a GraphDB. I have been researching on
many different technologies, such as, neo4j, hypergraphDB, etc.

However I don't think we would like to deal with many different
"storage technologies". So, wondering if there are ways to use some
Graph API and use MongoDB as storage. Does this make any sense? Are
there any initiatives in this front? Your response is highly
appreciated.

Thanks
Elangovan S

Mayank

unread,
Apr 6, 2011, 1:17:08 PM4/6/11
to mongodb-user
Depends what sort of functionality you need on the graph. Are you
going to be using operations that only perform on the edge set of one
node at a time? In that case, you could probably get by with an
adjacency list representation in Mongo. If you need more complex
operations, like computing shortest paths or performing some sort of
matrix calculations, then you might want to look into the Map/Reduce
capabilities of Mongo.

- Mayank

elangovans

unread,
Apr 8, 2011, 11:35:12 PM4/8/11
to mongodb-user
Currently I have requirements to deal with nodes and edges; and in
many cases I would need to query and bring collection of nodes.
However I will need to calculate the distances etc in the future.

Are there any samples or standard implementations that I can make use
of? Could you please point me to right direction?

Thanks so much.

tony tam

unread,
Apr 8, 2011, 11:51:34 PM4/8/11
to mongodb-user
Hi, I'm actually going to present how Wordnik does this at MongoSF
next month:

http://www.10gen.com/conferences/mongosf2011

So far we've had very good luck backing our directed graph with
MongoDB, and it's quite large.

Tony

Nat

unread,
Apr 8, 2011, 11:53:32 PM4/8/11
to mongodb-user
You probably want to use graph database. It will be more suitable for
storing graphs. There are many implementations available already.

elangovans

unread,
Apr 9, 2011, 12:06:05 AM4/9/11
to mongodb-user
Yes, I have been trying with Neo4j and reading on few other graphDB
solutions. However, they all come their own storage solutions; I will
be killed if I ask for one more random storage infra structure. I
already convinced and started to using MongoDB for another
requirement.

I wish Neo4j provides an API to store in MongoDB. :-)
Reply all
Reply to author
Forward
0 new messages