The idea of making DAG of a given expression is to construct corresponding syntax tree first and then we find the common occurence in the tree and join these common occurence to their common parent ; indicating that the same units are not taken repeatedly..This is shown as follow :
Hence number of internal nodes = 3
Number of leaf node = 1
Number of edges in DAG = 6