dgraph_transpose/3

dgraph_transpose(+ Graph, - Transpose)*

Unify NewGraph with a new graph obtained from Graph by replacing all edges of the form V1-V2 by edges of the form V2-V1.