Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
def main():
print("Hello from graph-benchmarks!")
import logging

import typer
from rich.logging import RichHandler

from src.download import app as download_app
from src.prepare_matrices import app as prepare_matrices_app
from src.benchmark import app as benchmark_app

app = typer.Typer(no_args_is_help=True)
app.add_typer(download_app)
app.add_typer(prepare_matrices_app)
app.add_typer(benchmark_app, name="benchmark")

log_file_handler = logging.FileHandler("log.txt")

FORMAT = "%(message)s"
logging.basicConfig(
level="NOTSET",
format=FORMAT,
datefmt="[%X]",
handlers=[RichHandler(), log_file_handler],
)

log = logging.getLogger("rich")


if __name__ == "__main__":
main()
app()
33 changes: 16 additions & 17 deletions matrices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
- fsharp
reorder: true
link: https://suitesparse-collection-website.herokuapp.com/MM/DIMACS10/coAuthorsCiteseer.tar.gz
# SSSP - find 50K vertices matrix and test (Andrews_positive.mtx)
- name: Andrews_positive
# SSSP - find 50K vertices matrix and test (Andrews.mtx)
- name: Andrews
enabled: true
algorithm: sssp
tools:
Expand All @@ -60,8 +60,8 @@
- lagraph
- fsharp
reorder: false
link: https://sparse.tamu.edu/Andrews/Andrews
- name: Andrews_positive
link: https://suitesparse-collection-website.herokuapp.com/MM/Andrews/Andrews.tar.gz
- name: Andrews
enabled: true
algorithm: sssp
tools:
Expand All @@ -70,7 +70,7 @@
- lagraph
- fsharp
reorder: true
link: https://sparse.tamu.edu/Andrews/Andrews
link: https://suitesparse-collection-website.herokuapp.com/MM/Andrews/Andrews.tar.gz
# TC - only small matrices
# Small matrices ==> every algorithm for vine comparison
- name: gr_30_30
Expand All @@ -83,7 +83,7 @@
- fsharp
- vine
reorder: false
link: https://sparse.tamu.edu/HB/gr_30_30
link: https://suitesparse-collection-website.herokuapp.com/MM/HB/gr_30_30.tar.gz
- name: gr_30_30
enabled: true
algorithm: bfs
Expand All @@ -94,7 +94,7 @@
- fsharp
- vine
reorder: true
link: https://sparse.tamu.edu/HB/gr_30_30
link: https://suitesparse-collection-website.herokuapp.com/MM/HB/gr_30_30.tar.gz
- name: Trefethen_2000
enabled: true
algorithm: bfs
Expand All @@ -105,7 +105,7 @@
- fsharp
- vine
reorder: false
link: https://sparse.tamu.edu/JGD_Trefethen/Trefethen_2000
link: https://suitesparse-collection-website.herokuapp.com/MM/JGD_Trefethen/Trefethen_2000.tar.gz
- name: Trefethen_2000
enabled: true
algorithm: bfs
Expand All @@ -116,7 +116,7 @@
- fsharp
- vine
reorder: true
link: https://sparse.tamu.edu/JGD_Trefethen/Trefethen_2000
link: https://suitesparse-collection-website.herokuapp.com/MM/JGD_Trefethen/Trefethen_2000.tar.gz
- name: gr_30_30
enabled: true
algorithm: sssp
Expand All @@ -127,7 +127,7 @@
- fsharp
- vine
reorder: false
link: https://sparse.tamu.edu/HB/gr_30_30
link: https://suitesparse-collection-website.herokuapp.com/MM/HB/gr_30_30.tar.gz
- name: gr_30_30
enabled: true
algorithm: sssp
Expand All @@ -138,7 +138,7 @@
- fsharp
- vine
reorder: true
link: https://sparse.tamu.edu/HB/gr_30_30
link: https://suitesparse-collection-website.herokuapp.com/MM/HB/gr_30_30.tar.gz
- name: Trefethen_2000
enabled: true
algorithm: sssp
Expand All @@ -149,7 +149,7 @@
- fsharp
- vine
reorder: false
link: https://sparse.tamu.edu/JGD_Trefethen/Trefethen_2000
link: https://suitesparse-collection-website.herokuapp.com/MM/JGD_Trefethen/Trefethen_2000.tar.gz
- name: Trefethen_2000
enabled: true
algorithm: sssp
Expand All @@ -160,7 +160,7 @@
- fsharp
- vine
reorder: true
link: https://sparse.tamu.edu/JGD_Trefethen/Trefethen_2000
link: https://suitesparse-collection-website.herokuapp.com/MM/JGD_Trefethen/Trefethen_2000.tar.gz
- name: gr_30_30
enabled: true
algorithm: tc
Expand All @@ -171,7 +171,7 @@
- fsharp
- vine
reorder: false
link: https://sparse.tamu.edu/HB/gr_30_30
link: https://suitesparse-collection-website.herokuapp.com/MM/HB/gr_30_30.tar.gz
- name: gr_30_30
enabled: true
algorithm: tc
Expand All @@ -182,7 +182,7 @@
- fsharp
- vine
reorder: true
link: https://sparse.tamu.edu/HB/gr_30_30
link: https://suitesparse-collection-website.herokuapp.com/MM/HB/gr_30_30.tar.gz
- name: Trefethen_2000
enabled: true
algorithm: tc
Expand All @@ -192,6 +192,5 @@
- lagraph
- fsharp
reorder: false
link: https://sparse.tamu.edu/JGD_Trefethen/Trefethen_2000

link: https://suitesparse-collection-website.herokuapp.com/MM/JGD_Trefethen/Trefethen_2000.tar.gz
# Trefethen_2000 is not reordered for tc because it makes everything much worse
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"dataclass-wizard[yaml]>=0.39.1",
"ipykernel>=7.2.0",
"matplotlib>=3.10.8",
"pandas>=3.0.2",
"pyyaml>=6.0.3",
"requests[socks]>=2.33.1",
"scipy>=1.17.1",
"scipy-stubs>=1.18.0.0",
"toolz>=1.1.0",
"typer>=0.24.1",
]
92 changes: 0 additions & 92 deletions scripts/download_matrices.py

This file was deleted.

38 changes: 0 additions & 38 deletions scripts/make_positive_int.py

This file was deleted.

75 changes: 0 additions & 75 deletions scripts/prepare_matrices.py

This file was deleted.

Loading