#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

#1898 in Data structures

Download history 81/week @ 2024-08-29 176/week @ 2024-09-05 25/week @ 2024-09-12 23/week @ 2024-09-19 20/week @ 2024-09-26 9/week @ 2024-10-03

56 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