Common class for scheduling, in view of making it generate dot sources
Added option to generate .dot dependency graphs