Returns a "transposed" version of this graph. Useful for walking in
        reverse.

def transposed(self):
        """Returns a "transposed" version of this graph. Useful for walking in
        reverse.
        """
        return Graph(steps=self.steps, dag=self.dag.transpose())