We provide the following graph classes:
GraphStruct: undirected (labeled) _graph DGraphStruct: directed (labeled) _graph DDGraphStruct: directed _graph with node and edge features
GraphData<>: collection of graphs from the above classes, for saving and loading multiple graphs in one file.
Hops (paper)
- Construct class:
Hops(GraphData, Parameters) - Run hops:
Hops::Run(int graphId, GraphStruct pattern, RunParameters)
Geodesic Core (paper)
Graph Tukey Depth (paper)
For GED computations, we provide a wrapper for the external library gedlib. The following steps are necessary to build the library:
- Navigate to the external folder and clone the gedlib repository:
git clone https://github.com/dbblumenthal/gedlib.git- Follow the instructions in the gedlib repository to build the library.
Hints:
- You need: CMake, Doxygen and OpenMP
- If using C++20 standard (as in this repo) replace boost.1.69.0 by boost.1.89.0 (download).
- If everything is installed properly, use:
to build the library.
python install.py
- In examples/algorithms/ged we provide an example for using the gedlib library with our graph classes.
| Parameter Type | Description |
|---|---|
| int | compatibility_format_version |
| int | graph_number |
| Repeat for each _graph | |
| unsigned int | string length of graph_name |
| string | graph_name |
| enum | graph_type |
| size_t | node_number |
| unsigned int | node_features |
| Repeat for every node feature | |
| unsigned int | string length of node_feature_name |
| string | node_feature_name |
| size_t | edge_number |
| unsigned int | edge_features |
| Repeat for every node feature | |
| unsigned int | string length of edge_feature_name |
| string | edge_feature_name |
| Repeat for each _graph | |
| Repeat for every node | |
| double | node_feature_i |
| size_t | edge_head |
| size_t | edge_tail |
| Repeat for every edge | |
| double | edge_feature_i |