How delialia/bst works
This repository is a Python library and research code for converting numeric time series into undirected natural and horizontal visibility graphs. The main user workflow is to provide a series and timeline, choose the basic, divide-and-conquer, or BST implementation, and receive visibility connections; the example compares algorithm outputs. Separate paper experiments benchmark these methods on generated, finance, and speech data, and plotting scripts visualize the reported results. The excerpts show the algorithm calls and experiment wiring; unsampled implementation details are not inferred.
Main entry points: run_exp02_finance.py Finance benchmarks · run_exp02_speech.py Speech benchmarks · example.py Algorithm comparison example · results Experiment results
Components 20
Graph algorithms
- Basic NVG
visibility_algorithms.py - Divide-conquer NVG
visibility_algorithms.py - Basic HVG
visibility_algorithms.py - Divide-conquer HVG
visibility_algorithms.py - BST visibility
node_class.py - BST node operations
node_class.py
Research experiments
- Algorithm comparison example
example.py - Synthetic benchmarks
run_exp01.py - Finance benchmarks
run_exp02_finance.py - Speech benchmarks
run_exp02_speech.py - Online merge benchmark
run_exp03.py
Results and plots
- Experiment results
results - Synthetic result plots
plot_exp01_Figure04.py - Domain result plots
plot_exp02_Figure05.py - Merge result plot
plot_exp03_Figure06.py - Plot sample data
sample_data
Other components
- Library user
- Time series
- Finance input data
- Speech input data
Connections 35
- Library user → Algorithm comparison example: runs example
README.md - Time series → Algorithm comparison example: provides input
example.py - Algorithm comparison example → Basic NVG: calls
example.py - Algorithm comparison example → Divide-conquer NVG: calls
example.py - Algorithm comparison example → Basic HVG: calls
example.py - Algorithm comparison example → Divide-conquer HVG: calls
example.py - Algorithm comparison example → BST visibility: calls
example.py - BST visibility → BST node operations: uses node methods
node_class.py - Synthetic benchmarks → Basic NVG: benchmarks
run_exp01.py - Synthetic benchmarks → Divide-conquer NVG: benchmarks
run_exp01.py - Synthetic benchmarks → Basic HVG: benchmarks
run_exp01.py - Synthetic benchmarks → Divide-conquer HVG: benchmarks
run_exp01.py - Synthetic benchmarks → BST visibility: benchmarks
run_exp01.py - Synthetic benchmarks → Experiment results: writes results
run_exp01.py - Finance benchmarks → Finance input data: reads
run_exp02_finance.py - Finance benchmarks → Basic NVG: benchmarks
run_exp02_finance.py - Finance benchmarks → Divide-conquer NVG: benchmarks
run_exp02_finance.py - Finance benchmarks → Basic HVG: benchmarks
run_exp02_finance.py - Finance benchmarks → Divide-conquer HVG: benchmarks
run_exp02_finance.py - Finance benchmarks → BST visibility: benchmarks
run_exp02_finance.py - Finance benchmarks → Experiment results: writes results
run_exp02_finance.py - Speech benchmarks → Speech input data: reads
run_exp02_speech.py - Speech benchmarks → Basic NVG: benchmarks
run_exp02_speech.py - Speech benchmarks → Divide-conquer NVG: benchmarks
run_exp02_speech.py - Speech benchmarks → Basic HVG: benchmarks
run_exp02_speech.py - Speech benchmarks → Divide-conquer HVG: benchmarks
run_exp02_speech.py - Speech benchmarks → BST visibility: benchmarks
run_exp02_speech.py - Speech benchmarks → Experiment results: writes results
run_exp02_speech.py - Online merge benchmark → BST visibility: builds trees
run_exp03.py - Online merge benchmark → Experiment results: writes results
run_exp03.py - Experiment results → Synthetic result plots: plots synthetic data
plot_exp01_Figure04.py - Experiment results → Domain result plots: plots benchmark data
plot_exp02_Figure05.py - Experiment results → Merge result plot: plots merge data
plot_exp03_Figure06.py - Plot sample data → Synthetic result plots: supplies series
plot_exp01_Figure04.py - Plot sample data → Domain result plots: supplies samples
plot_exp02_Figure05.py