30 # include <tpl_graph.H> 54 template <
class GT,
class SA = Dft_Show_Arc<GT> >
58 typename GT::Node * tgt =
nullptr;
60 bool test_path(
typename GT::Node * curr)
73 typename GT::Arc * arc = i.get_current_arc_ne();
77 ARC_BITS(arc).set_bit(Find_Path,
true);
78 if (test_path(i.get_tgt_node()))
87 bool test_path(
const GT & g,
typename GT::Node * src,
typename GT::Node * dest)
89 if (not g.is_digraph() and g.get_num_arcs() >= g.get_num_nodes())
92 g.reset_bit_nodes(Find_Path);
93 g.reset_bit_arcs(Find_Path);
100 typename GT::Arc * arc = i.get_current_arc_ne();
101 ARC_BITS(arc).set_bit(Find_Path,
true);
102 if (test_path(i.get_tgt_node()))
123 typename GT::Node * end_node)
125 return test_path(g, start_node, end_node);
133 # endif // TEST_PAT_H bool operator()(const GT &g, typename GT::Node *start_node, typename GT::Node *end_node)
Definition: tpl_test_path.H:122
#define IS_NODE_VISITED(p, bit)
Definition: aleph-graph.H:327
Definition: tpl_test_path.H:55
#define IS_ARC_VISITED(p, bit)
Definition: aleph-graph.H:360
#define NODE_BITS(p)
Definition: aleph-graph.H:305
#define ARC_BITS(p)
Definition: aleph-graph.H:351
Definition: tpl_graph.H:1177