An open API service indexing awesome lists of open source software.

https://github.com/ahajha/spang

An implementation of gSpan in C++20
https://github.com/ahajha/spang

Last synced: 2 months ago
JSON representation

An implementation of gSpan in C++20

Awesome Lists containing this project

README

        

# spang
An implementation of gSpan in C++20

## Input format
```
t #
v
...
e
...
t #
...
```
Takes a list of graphs, with each graph starting with `t #` followed by its ID (an integer). The graph is then followed by its list of vertices (each starting with `v`) and list of edges (each starting with `e`). All IDs and labels must be integers, and may be negative. IDs may be in any order, though it is generally simpler to order them sequentially from 0. Comments may be added by starting a line with "#".

## Output format
```
t # *
v
...
e
...
[x: ]

t # *
...
```
Outputs a list of subgraphs that are frequent, along with their support and, optionally, the list of input graphs that this subgraph occurs in.