Representing a DAG (directed acyclic graph)

后端 未结 4 1904
醉梦人生
醉梦人生 2021-02-04 09:02

I need to store dependencies in a DAG. (We\'re mapping a new school curriculum at a very fine grained level)

We\'re using rails 3

Considerations

  • W
4条回答
  •  无人及你
    2021-02-04 09:25

    I think the upcoming version (beta at the moment) of the Ruby bindings for the graph database Neo4j should be a good fit. It's for use with Rails 3. The underlying data model uses nodes and directed relationships/edges with key/value style attributes on both. To scale read-mostly architectures Neo4j uses a master/slave replication setup.

提交回复
热议问题