Made get_predecessors a hidden function