Nonlinear Weighted Directed Acyclic Graph and A Priori Estimates for Neural Networks