Extending local features with contextual information in graph kernels