def __init__(self, coupling_map, initial_layout=None):
super().__init__()<EOL>self.layout = initial_layout<EOL>self.coupling_map = coupling_map<EOL>
Checks if the CNOTs in DAGCircuit are in the allowed direction with
respect to `coupling_map`.
Args:
    coupling_map (CouplingMap): Directed graph representing a coupling map.
    initial_layout (Layout): The initial layout of the DAG to analyze.