DAGCircuit.longest_path

DAGCircuit.longest_path()[source]

Returns the longest path in the dag as a list of DAGNodes.