Data Structures, Algorithms, & Applications in Java
Chapter 17, Exercise 5
The graph has no cycles.