Structure learning of Bayesian networks

No. There will be hidden nodes in both DAGs. What I meant is there will be at least one observed node in the whole system. So both DAGs might have observed nodes, but a nonzero number of hidden nodes too.