The kernels bewteen pairs of vertices in these two graphs are computed.
node_kernelsdict
A dictionary of kernel functions for nodes, including 3 items: ‘symb’
for symbolic node labels, ‘nsymb’ for non-symbolic node labels, ‘mix’
for both labels. The first 2 functions take two node labels as
parameters, and the ‘mix’ function takes 4 parameters, a symbolic and a
non-symbolic label for each the two nodes. Each label is in form of 2-D
dimension array (n_samples, n_features). Each function returns a number
as the kernel value. Ignored when nodes are unlabeled. This argument
is designated to conjugate gradient method and fixed-point iterations.
node_labelslist, optional
The list of the name strings of the node labels. The default is [].
node_attrslist, optional
The list of the name strings of the node attributes. The default is [].
Parallelization of shortest path graph kernels on multi-core cpus and gpus.
Proceedings of the Programmability Issues for Heterogeneous Multicores
(MultiProg), Vienna, Austria, 2014.
This method differs from networkx.tensor_product in that this method only adds nodes and edges in G1 and G2 that have the same labels to the direct product graph.
This method differs from networkx.tensor_product in that this method only adds nodes and edges in G1 and G2 that have the same labels to the direct product graph.
For an input graph G, its corresponding shortest-paths graph S contains the same set of nodes as G, while there exists an edge between all nodes in S which are connected by a walk in G. Every edge in S between two nodes is labeled by the shortest distance between these two nodes.
For an input graph G, its corresponding shortest-paths graph S contains the same set of nodes as G, while there exists an edge between all nodes in S which are connected by a walk in G. Every edge in S between two nodes is labeled by the shortest distance between these two nodes.
The list of basic types in Python. The default is None, which means
the default basic types are used. The default basic types include
int, float, complex, str, bool, NoneType, list,
tuple, dict, set, frozenset, range, slice.
deepbool, optional
Whether to check the object recursively when obj is iterable.
The default is False.