|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Depth-first tree visualization with DFS numbering. More...
Go to the source code of this file.
Classes | |
| struct | Clave |
| Key structure for DFS tree nodes. More... | |
| struct | Clave_Igual |
| Equality comparator for Clave structures. More... | |
| struct | Convertir |
| Converter from graph node to Tree_Node<Clave>. More... | |
| struct | Write_Node |
| Writer that outputs only the node key. More... | |
| struct | Write_Df |
| Writer that outputs node key and DFS number. More... | |
| struct | Write_Low |
| Writer that outputs node key, DFS number, and low-link value. More... | |
Functions | |
| void | visitar_df (Grafo &, Grafo::Node *nodo, Grafo::Arc *) |
| DFS visitor that assigns discovery numbers. | |
| void | visitar_low (Grafo &, Grafo::Node *nodo, Grafo::Arc *) |
| DFS visitor that copies low-link values from cookies. | |
| template<class GT , class Key > | |
| void | write_df_low_tree (GT &g, typename GT::Node *src, std::ofstream &f) |
| Generate a DFS tree picture with low-link values. | |
Variables | |
| static long | global_counter = 0 |
Depth-first tree visualization with DFS numbering.
This file provides utilities for generating visual representations of depth-first spanning trees, including DFS discovery numbers and low-link values used in cut-vertex (articulation point) detection.
The Clave struct stores per-node information:
key: Original node identifiercount: DFS discovery number (df)low: Low-link value for cut-vertex detectionDefinition in file generate_df_tree.H.
|
inline |
DFS visitor that assigns discovery numbers.
Increments the global counter and assigns it to the node's df field.
Definition at line 179 of file generate_df_tree.H.
References global_counter, and Aleph::maps().
Referenced by write_df_low_tree().
|
inline |
DFS visitor that copies low-link values from cookies.
Retrieves the low-link value stored in the node's cookie field.
Definition at line 188 of file generate_df_tree.H.
References Aleph::maps().
Referenced by write_df_low_tree().
|
static |
Definition at line 71 of file generate_df_tree.H.
Referenced by visitar_df().