simple-pagerank 0.1.1

Simple library to calculate the PageRank of a graph
Documentation

Simple page rank

Very simple implementation of the PageRank algorithm.

Features

  • Small footprint
  • Easy to use API
  • Fast `

Usage

let mut pr = Pagerank::<&str>::new();
pr.add_link("source", "target");
pr.add_link("source", "another target");
pr.calculate();

// print result (always sorted)

pr.nodes()
	.iter()
	.map(|node| println!("page {} with score {}", node.id(), node.score()))
	.for_each(drop);

Built-in binary example

The repository has a built-in binary example which works with WikiLinkGraphs dataset.

gzcat eswiki.wikilink_graph.2018-03-01.csv.gz| cargo run --release wikilink