Kernels for Graph Similarity and Node Similarity