Learning Discrete Directed Acyclic Graphs via Backpropagation