qiskit.dagcircuit.DAGCircuit.ancestors¶ DAGCircuit.ancestors(node)[fuente]¶ Returns set of the ancestors of a node as DAGOpNodes and DAGInNodes.