|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Convert spanning tree graphs to Tree_Node structures. More...
#include <memory>#include <ah-graph-concepts.H>#include <tpl_tree_node.H>#include <tpl_dfs_stack.H>#include <tpl_graph.H>#include <tpl_graph_utils.H>#include <tpl_test_acyclique.H>#include <ah-errors.H>Go to the source code of this file.
Classes | |
| struct | Aleph::graph_to_tree_detail::Frame< GT, Key, SA > |
| A node of the tree being built that waits for the one that it visits, its image in the tree, the arc through which it was reached and the next arc of it to look at. More... | |
| class | Aleph::Graph_To_Tree_Node< GT, Key, Convert, SA > |
| Functor class to convert a tree graph to Tree_Node structure. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
| namespace | Aleph::graph_to_tree_detail |
Functions | |
| template<class GT , typename Key , class SA , class Convert , class... Args> | |
| void | Aleph::graph_to_tree_detail::build (Tree_Node< Key > *troot, Convert &&convert, typename GT::Node *groot, Args &&... args) |
| template<AlephGraph GT, typename Key , typename Convert , ArcFilter< GT > SA> | |
| static void | Aleph::__graph_to_tree_node (GT &g, typename GT::Node *groot, Tree_Node< Key > *troot, const SA &sa) |
| template<AlephGraph GT, typename Key , class Convert , ArcFilter< GT > SA = Dft_Show_Arc<GT>> | |
| Tree_Node< Key > * | Aleph::graph_to_tree_node (GT &g, typename GT::Node *groot, SA sa=SA()) |
| Convert a tree graph to a Tree_Node structure. | |
Convert spanning tree graphs to Tree_Node structures.
This file provides utilities for converting spanning trees represented as adjacency-list graphs into Tree_Node<Key> structures, enabling the use of tree-specific algorithms and visualization tools.
While spanning trees can be represented using graph structures like List_Graph, the Tree_Node representation offers advantages for:
Tree_Node<Key> is less versatile than graph representations:
Definition in file graph_to_tree.H.