|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Convert spanning tree graphs to Tree_Node structures. More...
#include <tpl_tree_node.H>#include <tpl_graph.H>#include <tpl_graph_utils.H>#include <ah-errors.H>Go to the source code of this file.
Classes | |
| 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. | |
Functions | |
| template<class GT , typename Key , class Convert > | |
| static Tree_Node< Key > * | Aleph::graph_to_tree_node (GT &g, typename GT::Node *groot) |
| template<class GT , typename Key , class Convert > | |
| static void | Aleph::__graph_to_tree_node (GT &g, typename GT::Node *groot, Tree_Node< Key > *troot) |
| template<class GT , typename Key , typename Convert , class SA > | |
| static void | Aleph::__graph_to_tree_node (GT &g, typename GT::Node *groot, Tree_Node< Key > *troot) |
| template<class GT , typename Key , class Convert , class SA = Dft_Show_Arc<GT>> | |
| Tree_Node< Key > * | Aleph::graph_to_tree_node (GT &g, typename GT::Node *groot) |
| 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.