def METHOD_NAME(basic_dag: DAG) -> None:
    """Test transpose."""
    dag = basic_dag
    transposed = dag.transpose()
    assert transposed.graph == {"d": {"c", "b"}, "c": {"a"}, "b": {"a"}, "a": set()}