Exploring Consistency in Graph Representations:from Graph Kernels to Graph Neural Networks