Skip to content

Cardinality Estimation of Subgraph Matching: A Filtering-Sampling Approach (Submitted to VLDB 2024)

License

Notifications You must be signed in to change notification settings

SNUCSE-CTA/FaSTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastest [VLDB 2024]

Cardinality Estimation of Subgraph Matching: A Filtering-Sampling Approach (VLDB 2024)

Dependencies

  • Boost Library
  • g++ Compiler with C++20 support

Usage

Build with the command

mkdir build
cd build
cmake .. && make  
Argument Description
-d Dataset to solve
--STRUCTURE X No substructure condition
--STRUCTURE 3 Substructure filter condition : Triangle Safety
--STRUCTURE 4 Substructure filter condition : Triangle and Four-cycle Safety

Execution example with yeast dataset:

./FaSTest -d yeast

Which will first read queries from yeast_ans.txt, and evaluate all queries whose true cardinalities are known.

The command

./FaSTest -d yeast --STRUCTURE 3

disables Four-cycle safety.

Datasets

The datasets and query graphs from RapidMatch is used for evaluation.

Input Format

t [#Vertex] [#Edge]
v [ID] [Label] [Degree]
v [ID] [Label] [Degree]
...
e 1235 2586 [EdgeLabel]

Edge labels are optional (missing labels are considered as zero).

Example (0-0-1-0 labeled path)

t 4 3
v 0 0 1
v 1 0 2
v 2 1 2
v 3 0 1
e 0 1
e 1 2
e 2 3

True Cardinalities

To assess accuracy, true cardinalities should be provided. We provide the ground truth values for 1,707 out of 1,800 queries for yeast dataset in dataset/yeast/yeast_ans.txt, computed with DAF.

About

Cardinality Estimation of Subgraph Matching: A Filtering-Sampling Approach (Submitted to VLDB 2024)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published