in reply to Graph model problem.

newbio,
In a number of /msg's, comments in the chatterbox, and a reply to your previous node - I have recommended that you do two things to get better responses.

I know this must be frustrating for you but, in my opinion, you still coming up short. For instance, here is one way you may have provided a visual representation of your network (which really isn't a tree):

cloudy ^ | | | / \ / \ / \ / \ sprinkler rain \ / \ / \ / \ / \/ ^ wetgrass

While you did provide the desired output, there is no explanation as to what it means. For instance, I would have probably labeled the output much better:

Node: wetgrass Participating Nodes: rain, sprinkler, wetgrass rain => T, sprinkler => T, wetgrass => T = CPT of 1 ...

You likely have a relatively simple mistake as indicated by the other replies in this node but that isn't easy for me to see. In fact, when I run your code I do not even get the output you claim it produces (array refs stringified in quotes).

Your description of your problem does not make your intended results clear and your code is also not easy to digest. I could take the time to disect your problem and rewrite your code but that is what you should have done.

Cheers - L~R