Vertex discovery finish predecessor 0 1 8 -1 1 2 7 0 2 3 6 1 3 4 5 2 Edge Tail Head Type 0 0 1 tree 1 1 2 tree 2 2 3 tree 3 3 0 back