Skip to content

Commit

Permalink
Extract ID type in Rust usage-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
s1ck committed Aug 14, 2023
1 parent 68eb38a commit dcc9cbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/algos/examples/usage-demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use log::info;
use polars::prelude::*;

type AppResult = Result<(), Box<dyn std::error::Error>>;
type ID = u64;

fn main() -> AppResult {
// First, we want to prepare some logging, so that we can see
Expand All @@ -17,7 +18,7 @@ fn main() -> AppResult {
// We also pass in CsrLayout::Deduplicated to tell
// the builder to create a sorted adjacency
// list and deduplicate parallel edges.
let g: DirectedCsrGraph<u64> = GraphBuilder::new()
let g: DirectedCsrGraph<ID> = GraphBuilder::new()
.csr_layout(CsrLayout::Deduplicated)
.file_format(Graph500Input::default())
.path("examples/scale_24.graph")
Expand Down

0 comments on commit dcc9cbc

Please sign in to comment.