webgraph-cli

Crates.iowebgraph-cli
lib.rswebgraph-cli
version0.3.0
created_at2025-05-23 13:42:00.485456+00
updated_at2025-11-28 04:44:12.589821+00
descriptionCommand line interface for the Rust port of the WebGraph framework (http://webgraph.di.unimi.it/).
homepage
repositoryhttps://github.com/vigna/webgraph-rs/
max_upload_size
id1686324
size232,321
Sebastiano Vigna (vigna)

documentation

README

CLI for WebGraph

downloads dependents GitHub CI license Latest version Documentation

Command-line interface for the Rust implementation of the WebGraph framework for graph compression.

This crate provides the webgraph CLI tool with various subcommands for working with compressed graphs. The tool supports:

  • Building accessory data structures (Elias-Fano offsets, DCF)
  • Converting graphs between formats (arcs, ASCII, endianness)
  • Transforming graphs (transpose, simplify)
  • Analyzing graphs (code statistics)
  • Running algorithms (Layered Label Propagation)
  • Benchmarking graph operations

Each module correspond to a group of commands, and each command is implemented as a submodule.

Subcommands

  • analyze: Compute statistics on graphs
  • bench: Benchmark graph operations
  • build: Build accessory graph data structures
  • check: Check coherence of graph files
  • from: Ingest data into graphs
  • perm: Create and manipulate permutations
  • run: Run algorithms on graphs
  • to: Convert graphs between representations
  • transform: Apply transformations to graphs

Separate Binaries

This crate also provides specialized standalone binaries:

  • webgraph-dist: Tools for computing graph properties based on distances (HyperBall, ExactSumSweep)
  • webgraph-sccs: Compute strongly connected components

Environment Variables

  • RUST_MIN_STACK: Minimum thread stack size (in bytes); we suggest RUST_MIN_STACK=8388608 (8MiB)

  • TMPDIR: Where to store temporary files (potentially very large ones)

  • RUST_LOG: Configuration for env_logger

Acknowledgments

This software has been partially supported by project SERICS (PE00000014) under the NRRP MUR program funded by the EU - NGEU, and by project ANR COREGRAPHIE, grant ANR-20-CE23-0002 of the French Agence Nationale de la Recherche. Views and opinions expressed are however those of the authors only and do not necessarily reflect those of the European Union or the Italian MUR. Neither the European Union nor the Italian MUR can be held responsible for them.

Commit count: 1391

cargo fmt