Fixed #152     DAG generation should be cancellable
Fixed #152
    DAG generation should be cancellable

RyanLucchese/energi,RyanLucchese/energi,RyanLucchese/energi,RyanLucchese/energi,RyanLucchese/energi,RyanLucchese/energi