Optimization and Application of Graph Neural Networks