abstractgraph

Crates.ioabstractgraph
lib.rsabstractgraph
version0.1.4
sourcesrc
created_at2019-02-20 14:10:32.396558
updated_at2019-05-12 15:11:25.154263
descriptionAbstract Graph Algorithms
homepage
repositoryhttps://gitlab.com/dgibson/abstractgraph.git
max_upload_size
id115971
size38,439
David Gibson (dgibson)

documentation

README

abstractgraph - Graph algorithms on user supplied data structures

It's quite common for graph structures to be defined implicitly by other data structures. However, most graph algorithm libraries require a specific input representation of the graph, meaning you need to awkwardly convert your internal data structures into that representation first.

abstractgraph lets you run graph algorithms directly on your own data structures, by having them implement traits to expose the graph structure.

Currently implemented algorithms:

  • Depth First Search
  • Breadth First Search
  • Dijkstra's Algorithm (single source shortest path)

abstractgraph began as a port of the aga and agar modules from ccan.

Usage

Add the following to your Cargo.toml:

[dependencies]
abstractgraph = "0.1"

License

This library is licensed under the LGPL, version 2.1 or later.

Commit count: 53

cargo fmt