A Tree-Based Kernel for Graphs