Debian Codegraph @

/

debian rust-vcs-graph 3.6.0-1debian librust-vcs-graph-dev debian librust-vcs-graph+default-dev debian librust-vcs-graph+pyo3-dev debian librust-vcs-graph-3-dev debian librust-vcs-graph-3+default-dev debian librust-vcs-graph-3+pyo3-dev debian librust-vcs-graph-3.6-dev debian librust-vcs-graph-3.6+default-dev debian librust-vcs-graph-3.6+pyo3-dev debian librust-vcs-graph-3.6.0-dev debian librust-vcs-graph-3.6.0+default-dev debian librust-vcs-graph-3.6.0+pyo3-dev cargo vcs-graph 3.6.0 debianjsonmakefilemarkdownrustrust-c-abishelltoml 21 files · 1038 symbols
View dependency graph

Depends on

README (full)

vcs-graph

Graph algorithms for version control systems.

vcs-graph provides building blocks used by version control tools: topological sorting (including merge-aware sorting that preserves branch structure), parent-map manipulation, least common ancestor queries, and related operations. It is the Rust core behind the vcsgraph Python package, originally extracted from the Breezy version control system.

Features

  • TopoSorter — iterative topological sort of a parent graph.
  • MergeSorter — merge-aware topological sort that assigns revision numbers and tracks merge depth, suitable for rendering commit history.
  • ParentMap / ChildMap — parent/child map types with utilities like invert_parent_map and collapse_linear_regions.
  • ParentsProvider trait with DictParentsProvider and StackedParentsProvider implementations.
  • Optional pyo3 feature for exposing these types to Python.

Example

use std::collections::HashMap;
use vcs_graph::tsort::TopoSorter;

let graph: HashMap<&str, Vec<&str>> = HashMap::from([
    ("A", vec![]),
    ("B", vec!["A"]),
    ("C", vec!["A"]),
    ("D", vec!["B", "C"]),
]);

let sorted = TopoSorter::new(graph.into_iter()).sorted().unwrap();
// Parents always come before children.

License

GPL-2.0-or-later. See COPYING.txt in the repository root.

dir debian/
dir src/
file .cargo_vcs_info.json
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file README.md