#tree-structure #node-tree #graphviz #directed-graph #future #generate #async

tree-graphviz

Generate GraphViz DOT directed trees, based on an arbitrary tree structure

2 unstable releases

0.2.0 Sep 6, 2024
0.1.0 Sep 4, 2024

#1989 in Data structures

37 downloads per month

LGPL-3.0-or-later

9KB
191 lines

A simple crate for generating GraphViz dot directed trees, based on an arbitrary tree structure. A tree can be any struct that implements: - std::string::ToString - std::hash::Hash - and TreeVizNode Currently, this crate does not support recursive elements within a tree.

This crate aims to be dependency free, and fast. An optional "async" feature is available and provides an async variant of draw_nodes - draw_nodes_async, which will recurse through a node's children concurrently. This introduces a dependency on the futures crate, but may be quicker, especially if futures is already in your dependency tree.

If you want to run tests on this crate, use cargo test --all-features, or the async-related tests will not run.


lib.rs:

A simple crate for generating GraphViz dot directed trees, based on an arbitrary tree structure. A tree can be any struct that implements: std::string::ToString, std::hash::Hash and TreeVizNode. Currently, this crate does not support recursive elements within a tree. An optional "async" feature is available and provides an async variant of draw_nodes - draw_nodes_async, which will recurse through a node's children concurrently. This introduces a dependency on the futures crate, but may be quicker, especially if futures is already in your dependency tree.

Dependencies

~135KB