add transpose of a directed graph