topologic

Crates.iotopologic
lib.rstopologic
version1.1.0
sourcesrc
created_at2023-07-12 02:40:25.833626
updated_at2024-01-23 22:24:28.282284
descriptionTopological sorting of Acyclic Dependency Graphs
homepage
repositoryhttps://github.com/oclyke/topologic
max_upload_size
id914241
size15,794
(oclyke)

documentation

README

topologic

This module provides a structure for representing and manipulating acyclic dependency graphs. Usage is generally to build a graph of dependencies by adding direct dependency pairs and then querying the graph for properties such as:

  • total dependencies of a certain node
  • total dependents of a certain node
  • topological sorting of dependencies
  • topological sorting of dependents

Usage

Please see the unit tests in lib.rs for examples of usage.

Todo:

  • Change topographical sort to use flags instead of memory allocation to avoid cloning the graph.
Commit count: 4

cargo fmt