walk_up_backref
next = walk_up_backref(node, edges, &index);
next = walk_up_backref(next, edges, &index);