Speed up CommandGraph by not enqueuing already-enqueued shapes