Check layered

Header: tweedledum/algorithms/analysis/check_layered.hpp

template<typename Circuit>
bool tweedledum::check_layered(Circuit const &circuit)

Check if a DAG circuit representation is layered.

A topological order is defined to be layered if all nodes of the i-th layer appear before the nodes of the (i+1)-th layer.