Vertical and horizontal

hi,
If I want to draw in the same diagram horizontal and vertical node by condition that I choose
(like the picture)

Its possible to do it ?

How is this topic different from How should I create a Tree diargram with links ?