Edge Histogram Kernel

The edge histogram kernel is a basic linear kernel on edge label histograms. The kernel assumes edge-labeled graphs. Let G be a collection of graphs, and assume that each of their edges comes from an abstract edge space E. Given a set of node labels L, :EL is a function that assigns labels to the edges of the graphs. Assume that there are d labels in total, that is d=|L|. Then, the edge label histogram of a graph G=(V,E) is a vector f=(f1,f2,,fd), such that fi=|{(v,u)E:(v,u)=i}| for each iL. Let f,f be the edge label histograms of two graphs G,G, respectively. The edge histogram kernel is then defined as the linear kernel between f and f, that is

k(G,G)=f,f

The complexity of the edge histogram kernel is linear in the number of edges of the graphs.

An implementation of that kernel can be found below

EdgeHistogram([n_jobs, normalize, verbose, …])

Edge Histogram kernel as found in [SB15].