I have a list like the following One item can have multiple immediate incoming ids, like in case of id=3, which is imediately preceeded by id=17 and id=18. I need a python code to determine this result by following the chain of predecessors both ways: (it is best to read the column all_successors to understand the logic, all_predecessors is the