D
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
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