task graph generator parallel edges fix