sbn_get_upstream function

Find all nodes upstream of a given node