title: What's the best way to store an n^2 network/graph in mongodb?
body: <p>I have a network of nodes where every node has information about every other node. What's the most efficient way to store this data? The networks can have sizes up to tens of thousands of nodes.</p>
  
  <p>Should I create a document for each node containing references to each other node, or should I create one massive tree structure which holds all the data? Or is there something else?</p>