yEd does not offer an interface to specify tree and non-tree edges for tree layout. The algorithm will determine these automatically.
Unfortunately, this means the algorithm might choose B edges as tree edges.
If there are only very few B edges, you could first remove the B edges, then arrange your syntax tree, re-insert your B edges, and finally run an edge routing algorithm on the B edges.