In the relation presentation way back when it was mentioned that transitive relations could allow you to say:

A is_ancestor_of B
B is_ancestor_of C

Therefore:
A is_ancestor_of C

How would you actually filter a view based on a transitive relation like this?

Bonus points:

I actually want a chain of relations ending in a node like this:

r1 = A is_ancestor_of B
r2 = r1 is_ancestor_of C
r3 = r2 is_ancestor_of D

How can I filter this so that A is_ancestor_of D?