ADF Directed Acyclic Graphs

One of the application I created a prototype for at work collects surveys which patients fill out. An example of a simple survey question with “branching” requirement can be related to gender. Based on that answer, only related sub questions should be posed. In order to model this dynamically(vs hard coding a survey), I had to revisit a topic from discrete math, specifically the concept of a directed graph. By implementing the underlying logic using a graph, a generic approach can be used to guide a user to fill out a survey for only relevant questions. There are many other use cases where graphs drive the underlying application logic (GPS, Neuroscience, Bayesian Networks, Supply Chain, etc..) and it’s up to you as the engineer to decide on the appropriate application.

Below is a short demo of the graph examples I have created:

Live demo
http://www.adfhomebrew.com/home/faces/graph2

Code via GITHUB
http://github.com/nycjdev/adfhomebrew

About these ads

About wesfang

www.linkedin.com/in/wesfang/ https://twitter.com/wesleyfang
This entry was posted in Uncategorized. Bookmark the permalink.

3 Responses to ADF Directed Acyclic Graphs

  1. ramesh says:

    I have similar requirement is it possible to elaborate on your use case and share the implementation deatails

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s