Representing a DAG (directed acyclic graph)

后端 未结 4 1894
醉梦人生
醉梦人生 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:16

    You might want to take a look at the act_as_dag gem.

    https://github.com/resgraph/acts-as-dag

    Also some good writing on Dags with SQL for people that might need some background on this.

    http://www.codeproject.com/Articles/22824/A-Model-to-Represent-Directed-Acyclic-Graphs-DAG-o

提交回复
热议问题