Home All Groups Group Topic Archive Search About
Author
22 Oct 2006 1:02 PM
Daniel
Hello,

I am writing an app that requires me to follow certain paths based on decisions
made.  The paths are defined using a paper diagram decision tree which, of
course, i want to automate.  The tree (much simplified but always a top down
tree.  note that some points don't connect e.g. B to E) looks something like
this:

       A
      / \
    B   C
   /       \
  D   E    F
    \ /   /  \
G   H   I   J


I want to say, "what is the path from C to J?" and I want a string returned
that says "C-F-J".  Sometimes, 2 routes might be available, but I would only
ever be interested in the first route.

I have been trying to get my head around the code but I am totally stumped.
So, is there anyone that can help out?

Thanks in advance.


Daniel
---------------------------------------------------
To contact me you need to clean up my email address.  It should be fairly
obvious...

Author
22 Oct 2006 7:48 PM
Spam Catcher
Daniel <idontlikejunk.oxley.dan***@gmail.com> wrote in
news:574310528d948c8c4023684fdbe@news.microsoft.com:

> I have been trying to get my head around the code but I am totally
> stumped.
>  So, is there anyone that can help out?

Take a look at Windows Workflow - seems to do exactly what you need :-)