26 template <
class GT,
class SA = Dft_Show_Arc<GT> >
30 typename GT::Node * tgt;
32 bool test_path(
typename GT::Node * curr)
45 typename GT::Arc * arc = i.get_current_arc();
49 ARC_BITS(arc).set_bit(Test_Path,
true);
50 if (test_path(i.get_tgt_node()))
59 bool test_path(GT & g,
typename GT::Node * src,
typename GT::Node * dest)
61 if (not g.is_digraph() and g.get_num_arcs() >= g.get_num_nodes())
64 g.reset_bit_nodes(Test_Path);
65 g.reset_bit_arcs(Test_Path);
72 typename GT::Arc * arc = i.get_current_arc();
73 ARC_BITS(arc).set_bit(Test_Path,
true);
74 if (test_path(i.get_tgt_node()))
97 typename GT::Node * end_node)
99 return test_path(g, start_node, end_node);
107 # endif // TEST_PAT_H
#define IS_NODE_VISITED(p, bit)
Definition: aleph-graph.H:242
Definition: tpl_test_path.H:27
#define IS_ARC_VISITED(p, bit)
Definition: aleph-graph.H:275
void next()
Adelanta el iterador una posición.
Definition: filter_iterator.H:143
#define NODE_BITS(p)
Definition: aleph-graph.H:221
bool operator()(GT &g, typename GT::Node *start_node, typename GT::Node *end_node)
Definition: tpl_test_path.H:96
#define ARC_BITS(p)
Definition: aleph-graph.H:266
Definition: tpl_graph.H:694