Crate tree_graphviz
source ·Expand description
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.
Traits§
- A trait that represents a node in an arbitrary tree structure. To use this with draw_nodes, you also need to implement std::hash::Hash.
Functions§
- Returns a visualisation of the tree with the root node
nodein the GraphViz DOT format, as a string.