8.5 Tree-Pattern Graph Kernels

Tree-based graph kernels [55] compare subtrees of graphs.

8.5.1 Definition

Let G = (V, E) be a graph and let T = (W, F), img be a rooted directed tree. A tree pattern of G with respect to T consists of vertices img such that

(8.14) equation

Each vertex img in the tree is assigned a vertex img in the graph such that edges and labels match. The img need not be distinct, as long as vertices assigned to sibling vertices in T are distinct (Fig. 8.3). The tree pattern counting functionψ(G, T) returns the number of times the tree pattern T occurs in the graph G, that is, the number of distinct tuples img that are tree patterns of T in G.

Figure 8.3 Tree patterns. Shown are the annotated graph of acetic acid (a) and a tree pattern contained in it (b). Numbers indicate assigned vertices. Note that ...

Get Statistical and Machine Learning Approaches for Network Analysis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.