get_predecessors function

Get node IDs for predecessor nodes to the specified node