get_successors function

Get node IDs for successor nodes to the specified node