API Reference¶
This is the class and function reference of GraKeL. In order for the user to understand how to use the package, we suggest he reads Documentation section.
grakel.graph
: Graph class with its utility functions¶
Utility Functions¶
|
Define if input is in a valid adjacency matrix format. |
|
Define if input is in a valid edge dictionary format. |
|
Return the Laplacian matrix of a directed graph. |
|
Calculate the Floyd Warshall, shortest path matrix. |
User guide: See the Graph (class) section for further details.
grakel.graph_kernels
: A kernel decorator¶
Graph Kernel (decorator)¶
|
A generic wrapper for graph kernels. |
User guide: See the GraphKernel (class) section for further details.
grakel.kernels
: A collection of graph kernels¶
Kernels¶
|
A general class for graph kernels. |
|
The random walk kernel class. |
|
The labeled random walk kernel class. |
|
Pyramid match kernel class. |
|
Neighborhood hashing kernel as proposed in [HK09]. |
|
The shortest path kernel class. |
|
The shortest path kernel for attributes. |
|
The graphlet sampling kernel. |
|
Calculate the subgraph matching kernel. |
|
Compute the Weisfeiler Lehman Kernel. |
|
The simple Hadamard code kernel, as proposed in [KI16]. |
The Neighborhood subgraph pairwise distance kernel. |
|
|
Lovasz theta kernel as proposed in [JJDB14]. |
|
Calculate the SVM theta kernel. |
|
The Propagation kernel for fully labeled graphs. |
|
The Propagation kernel for fully attributed graphs. |
|
ODD-Sth kernel as proposed in [DSMNS12]. |
|
Laplacian Graph Kernel as proposed in [KP16]. |
|
The simple Hadamard code kernel, as proposed in [KI16]. |
|
Vertex Histogram kernel as found in [SB15]. |
|
Edge Histogram kernel as found in [SB15]. |
|
Graph Hopper Histogram kernel as found in [FKP+13]. |
|
The core kernel framework, as proposed in [NMLV18]. |
|
Compute the Weisfeiler Lehman Optimal Assignment Kernel. |
User guide: See the Kernels (between graphs) section for further details.
grakel.datasets
: Datasets¶
Fetch¶
|
Access a large collection of benchmark datasets from TU Dortmund [KKMMN2016]. |
|
Return the info concerning the existence of a certain dataset. |
User guide: See the Dataset loading utilities section for further details.
grakel
: Utils¶
Use a kernel matrix as a transformer¶
|
A Kernel Matrix Transformer. |
Cross Validation¶
|
Cross Validate a list of precomputed kernels with an SVM. |
Load from other file formats¶
|
Transform an iterable of networkx objects to an iterable of Graphs. |
|
Produces a collection of Graph Objects from pandas dataframes. |
|
Produces a collection of Graph Objects from a collection of csv files. |
User guide: Usefull functions for applying to existing datasets, of other formats.