I've been working on a project where I want to have a flow of events. The flow of events is a sort of finite state machine except that the states and transitions aren't initially known. For example:
Event A --[ do nothing ]--> Event B --[ do nothing ]--> Event D
\ ^ ^
\ [do something else] /
\ | /
\--[do something]--> Event C --[time passes]--/
I've been using this as an opportunity to learn Backbone.js
(among other things), and I was wondering Is there a library for graphs using Backbone models?
I've looked at Workflow.js
, but it seems like it is intended for cases where the graph is known initially.