On the generation of circuits and minimal forbidden sets