|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
verfica si existe un camino entre dos nodos. More...
#include <tpl_test_path.H>
Public Member Functions | |
| Test_For_Path (SA __sa=SA()) | |
| bool | operator() (const GT &g, typename GT::Node *start_node, typename GT::Node *end_node) |
| Invoca a la prueba de existencia de camino entre dos nodos. | |
Private Member Functions | |
| bool | test_path (typename GT::Node *curr) |
| bool | test_path (const GT &g, typename GT::Node *src, typename GT::Node *dest) |
Private Attributes | |
| SA | sa |
| GT::Node * | tgt = nullptr |
verfica si existe un camino entre dos nodos.
Test_For_Path explora en profundidad el grafo g a partir de un nodo de inicio en búsqueda de un camino que depare en uno destino.
La clase toma dos parámetros tipo:
El bit test_path es utilizado para marcar los nodos y arcos visitados durante la búsqueda.
Definition at line 67 of file tpl_test_path.H.
|
inline |
Definition at line 125 of file tpl_test_path.H.
|
inline |
Invoca a la prueba de existencia de camino entre dos nodos.
| [in] | g | el grafo a buscar camino. |
| [in] | start_node | puntero al nodo origen del camino. |
| [in] | end_node | puntero a nodo destino del camino. |
Definition at line 134 of file tpl_test_path.H.
References Aleph::maps(), and Aleph::Test_For_Path< GT, SA >::test_path().
|
inlineprivate |
Definition at line 99 of file tpl_test_path.H.
References ARC_BITS, Aleph::Find_Path, GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), GraphCommon< GT, Node, Arc >::is_digraph(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), GraphCommon< GT, Node, Arc >::reset_bit_arcs(), GraphCommon< GT, Node, Arc >::reset_bit_nodes(), Aleph::Test_For_Path< GT, SA >::sa, Aleph::Test_For_Path< GT, SA >::test_path(), and Aleph::Test_For_Path< GT, SA >::tgt.
Definition at line 72 of file tpl_test_path.H.
References ARC_BITS, Aleph::Find_Path, IS_ARC_VISITED, IS_NODE_VISITED, Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), NODE_BITS, Aleph::Test_For_Path< GT, SA >::sa, Aleph::Test_For_Path< GT, SA >::test_path(), and Aleph::Test_For_Path< GT, SA >::tgt.
Referenced by Aleph::Test_For_Path< GT, SA >::operator()(), Aleph::Test_For_Path< GT, SA >::test_path(), and Aleph::Test_For_Path< GT, SA >::test_path().
Definition at line 69 of file tpl_test_path.H.
Referenced by Aleph::Test_For_Path< GT, SA >::test_path(), and Aleph::Test_For_Path< GT, SA >::test_path().
|
private |
Definition at line 70 of file tpl_test_path.H.
Referenced by Aleph::Test_For_Path< GT, SA >::test_path(), and Aleph::Test_For_Path< GT, SA >::test_path().