API Reference¶
This is the class and function reference of GraKeLX. In order for the user to understand how to use the package, we suggest he reads Documentation section.
grakelx.graph: Graph class with its utility functions¶
Base Class¶
|
The general graph class. |
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 of a directed graph. |
|
Calculate the Floyd Warshall, shortest path matrix. |
User guide: See the Graph (class) section for further details.
grakelx.graph_kernels: A kernel decorator¶
Graph Kernel (decorator)¶
|
A generic wrapper for graph kernels. |
User guide: See the GraphKernel (class) section for further details.
grakelx.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 []. |
|
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 []. |
The Neighborhood subgraph pairwise distance kernel. |
|
|
Lovasz theta kernel as proposed in []. |
|
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 []. |
|
Laplacian Graph Kernel as proposed in []. |
|
Vertex Histogram kernel as found in [SB15]. |
|
Edge Histogram kernel as found in [SB15]. |
|
Graph Hopper Histogram kernel as found in []. |
|
The core kernel framework, as proposed in []. |
|
Compute the Weisfeiler Lehman Optimal Assignment Kernel. |
User guide: See the Kernels (between graphs) section for further details.
grakelx.datasets: Datasets¶
Fetch¶
|
Access a large collection of benchmark datasets from TU Dortmund []. |
|
Return the info concerning the existence of a certain dataset. |
User guide: See the Dataset loading utilities section for further details.
grakelx: 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 / export to other file formats¶
|
Transform networkx objects to grakel.Graph objects. |
|
Transform grakel.Graph objects to networkx graph objects. |
|
Produces a collection of Graph Objects from pandas dataframes. |
|
Produces a collection of Graph Objects from a collection of csv files. |
|
Produces a collection of Graph Objects from a collection of csv files. |
User guide: See the Converting Between Formats section for detailed examples.