Establishing the Forecasting Model with Time Series Data Based on Graph and Particle Swarm Optimization