SWI-Prolog Did You Know Did you know? automatic UML->Prolog translation Search Documentation:
Predicate transitive_closure/2