Fix the predicate in printing dependency graph