Skip to content

Commit edca4bc

Browse files
committed
WIP
1 parent a1c89cb commit edca4bc

File tree

13 files changed

+522
-399
lines changed

13 files changed

+522
-399
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,5 @@ Cargo.lock
7979
# Miscellaneous files and directories to ignore
8080
# Add any additional file patterns a directory names that should be ignored down here
8181
.DS_Store
82+
tmp_*
83+
temp_*

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ categories = ["data-structures", "algorithms"]
1313
edition = "2021"
1414
rust-version = "1.83"
1515

16-
[workspace]
17-
members = []
18-
1916
resolver = "2"
2017

2118
include = [
@@ -46,6 +43,7 @@ tracing = "0.1.41"
4643
tracing-subscriber = "0.3.19"
4744
petgraph = { version = "0.7.1", features = ["graphmap", "stable_graph", "matrix_graph", "serde-1", "rayon"] }
4845
rand = "0.9.0"
46+
sprs = "0.11.3"
4947

5048
[dev-dependencies]
5149
criterion = { version = "0.5", features = ["html_reports"] }

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BINARY = target/release/$(BINARY_NAME)
55
PATH := /snap/bin:$(PATH)
66
DEBUG_GRAPHINA = 1
77
RUST_LOG = info
8-
RUST_BACKTRACE = 1
8+
RUST_BACKTRACE = full
99

1010
# Default target
1111
.DEFAULT_GOAL := help
@@ -22,7 +22,7 @@ format: ## Format Rust files
2222
.PHONY: test
2323
test: format ## Run tests
2424
@echo "Running tests..."
25-
DEBUG_GRAPHINA=$(DEBUG_GRAPHINA) cargo test -- --nocapture
25+
DEBUG_GRAPHINA=$(DEBUG_GRAPHINA) RUST_BACKTRACE=$(RUST_BACKTRACE) cargo test -- --nocapture
2626

2727
.PHONY: coverage
2828
coverage: format ## Generate test coverage report

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Graphina
22

3-
> [!NOTE]
4-
> This is a work in progress, so breaking changes may happen.
5-
63
[![Tests](https://img.shields.io/github/actions/workflow/status/habedi/graphina/tests.yml?label=tests&style=popout-square&logo=github)](https://github.com/habedi/graphina/actions/workflows/tests.yml)
74
[![Code Coverage](https://img.shields.io/codecov/c/github/habedi/graphina?style=popout-square&logo=codecov)](https://codecov.io/gh/habedi/graphina)
85
[![CodeFactor](https://img.shields.io/codefactor/grade/github/habedi/graphina?style=popout-square&logo=codefactor)](https://www.codefactor.io/repository/github/habedi/graphina)
@@ -17,9 +14,12 @@ Graphina is a high-level graph data science library for Rust.
1714
It provides the common data structures and algorithms used for analyzing the graphs of real-world networks like social,
1815
transportation, and biological networks.
1916

20-
Compared to [Petgraph](https://github.com/petgraph/petgraph) and [Rustworkx](https://www.rustworkx.org/), Graphina
21-
aims to provide a more high-level API and a more comprehensive set of ready-to-use algorithms for graph analysis
22-
and mining.
17+
Compared to other Rust graph libraries like [petgraph](https://github.com/petgraph/petgraph)
18+
and [rustworkx](https://www.rustworkx.org/), Graphina aims to provide a more high-level API and a more comprehensive
19+
set of ready-to-use algorithms for graph analysis and mining.
20+
21+
> [!NOTE]
22+
> Graphina is still in the early stages of development, and breaking changes may happen.
2323
2424
## Features
2525

@@ -28,20 +28,20 @@ and mining.
2828
- [x] Weighted and unweighted graphs
2929

3030
* **IO**:
31-
- [x] Edge list (CSV)
32-
- [ ] Adjacency list (TXT)
31+
- [x] Edge list
32+
- [x] Adjacency list
3333
- [ ] GraphML
3434
- [ ] GML
3535
- [ ] JSON
3636

3737
* **Generators**:
38-
- [x] Erdős–Rényi Graph (Random)
38+
- [x] Erdős–Rényi Graph
3939
- [x] Complete Graph
4040
- [x] Bipartite Graph
4141
- [x] Star Graph
4242
- [x] Cycle Graph
43-
- [x] Watts–Strogatz Graph (Small-World)
44-
- [x] Barabási–Albert Graph (Scale-Free)
43+
- [x] Watts–Strogatz Graph
44+
- [x] Barabási–Albert Graph
4545

4646
* **Algorithms**:
4747
- [ ] Graph traversal

src/graph/generator.rs

Lines changed: 0 additions & 204 deletions
This file was deleted.

0 commit comments

Comments
 (0)