qiskit.dagcircuit.DAGCircuit.edges¶
-
DAGCircuit.
edges
(nodes=None)[source]¶ Iterator for edge values and source and dest node
This works by returning the output edges from the specified nodes. If no nodes are specified all edges from the graph are returned.
- Parameters
nodes (DAGNode|list(DAGNode) – Either a list of nodes or a single input node. If none is specified all edges are returned from the graph.
- Yields
edge –
- the edge in the same format as out_edges the tuple
(source node, destination node, edge data)