The overall structure information is obtained in the training of the capsule graph neural network, and as the layers increases, the structure feature information of the node will be lost. A capsule graph neural network that combines global and local features was proposed. First, the Node2vec is improved, and the attribute information of nodes is introduced into the random walk process, so that the network structure and the attributes of nodes are taken into account when the network representation is generated. Then, the improved Node2vec is introduced into the capsule graph neural network, and the capsule graph neural network is designed which fuses global and local characteristics. Experimental results show that the proposed capsule graph neural network has faster training convergence, and higher graph classification accuracy.