Crate matrixgraph
A graph implementation based on dense adjacency matrices
WARNING! Please expect odd bugs and backward incompatible changes at this early stage!
Features
Supported structs:
SimpleGraph
: a simple graph represented by the upper right triangle of an adjacency matrix of fixed sizeDigraph
: a digraph represented by a dense adjacency matrix of fixed size
Usage
Add this library as a crate to your project:
extern crate matrixgraph;
Define a graph:
use ;
let mut digraph = new;
digraph.set_edge;
digraph.set_edge;
digraph.set_edge;