Skip to content

Commit ca40f17

Browse files
committed
using streaming for the project
1 parent 03aaa27 commit ca40f17

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pregel-rs"
3-
version = "0.0.7"
3+
version = "0.0.8"
44
authors = [ "Ángel Iglesias Préstamo <angel.iglesias.prestamo@gmail.com>" ]
55
description = "A Graph library written in Rust for implementing your own algorithms in a Pregel fashion"
66
documentation = "https://docs.rs/crate/pregel-rs/latest"
@@ -12,7 +12,7 @@ keywords = ["pregel", "graph", "pagerank", "polars", "algorithms"]
1212
categories = ["algorithms", "database", "mathematics", "science"]
1313

1414
[dependencies]
15-
polars = { version = "0.29.0", features = ["lazy"] }
15+
polars = { version = "0.29.0", features = ["lazy", "streaming"] }
1616

1717
[package.metadata.docs.rs]
1818
features = []

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ of your project. You can add the following line to your `Cargo.toml` file:
6363

6464
```toml
6565
[dependencies]
66-
pregel-rs = "0.0.7"
66+
pregel-rs = "0.0.8"
6767
```
6868

6969
4. _Implement your graph algorithm_: Now you can start implementing your graph

src/pregel.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ impl<'a> Pregel<'a> {
817817
.to_owned()
818818
.alias(self.vertex_column.as_ref()), // initial message column name is set by the user
819819
])
820+
.with_streaming(true)
820821
.collect()?;
821822
// After computing the super-step 0, we start the execution of the Pregel algorithm. This
822823
// execution is performed until all the nodes vote to halt, or the number of iterations is
@@ -911,6 +912,7 @@ impl<'a> Pregel<'a> {
911912
col(Column::Id.as_ref()),
912913
col(Column::Id.as_ref()),
913914
)
915+
.with_streaming(true)
914916
.collect()?;
915917

916918
iteration += 1; // increment the counter so we now which iteration is being executed

0 commit comments

Comments
 (0)