example:
vertex:A,B,C,D
edge:DOWN
A-------(DOWN)--->B-----(DOWN)---->C-----(DOWN)---->D
I want to the relust like this:
$depth | parent_name | name
-------+-------------+-----
0 | A | A
1 | A | B
2 | B | C
3 | C | D
help me!!!