Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
generate_tree.H File Reference

Tree visualization and output generation. More...

#include <fstream>
#include <memory>
#include <string>
#include <tpl_dfs_stack.H>
#include <tpl_tree_node.H>
#include <tpl_binNodeUtils.H>
#include <ah-errors.H>
Include dependency graph for generate_tree.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Aleph::Dft_Write< Node >
 

Namespaces

namespace  Aleph
 Main namespace for Aleph-w library functions.
 

Functions

std::string Aleph::escape_dot_label (const std::string &text)
 
template<typename Node , class Write >
static void Aleph::__generate_tree (Node *node, int deway[], const size_t &current_level, const size_t &size, std::ostream &output)
 
template<typename Node , class Write = Dft_Write<Node>>
void Aleph::generate_tree (Node *root, std::ostream &out, const int &tree_number=0)
 Generate a tree specification for the ntreepic drawing tool.
 
template<typename Node , class Write = Dft_Write<Node>>
void Aleph::generate_forest (Node *root, std::ostream &out)
 Generate a forest specification for the ntreepic drawing tool.
 
template<typename Node , class Write >
void Aleph::generate_btree (Node *root, std::ostream &out)
 Generate a binary tree specification for the btreepic drawing tool.
 
template<typename Node , class Write = Dft_Write<Node>>
void Aleph::generate_tree_graphviz (Node *root, std::ostream &out)
 Generate a Graphviz DOT specification for a tree.
 

Variables

constexpr size_t Aleph::Max_Tree_Node_Depth = 1024
 The depth of the trees that generate_tree() wrote before 7.3.2; it writes trees of any depth now.
 

Detailed Description

Tree visualization and output generation.

Provides functions for generating visual representations of tree structures including DOT format for Graphviz.

Author
Leandro Rabindranath León

Definition in file generate_tree.H.