Hi,
I happen to read the original post and you following post, it is not enough just simple a child - parent hierachy that two parents for one child. Such as the E in original post or the D in the following post.
You need to do some extra work , please see the thread that has already discussed this issue : multiple-parents hiearchy