this is the main function to fill the stacktrace field, it's done recursively on each step, we have all edges pointing from cur_node and sort them by priority then take the highest priority and find stacktrace pointing to it
source not stored for this graph (policy: none)