4 # include <tpl_graph.H>
34 bool test_graph(GT & g)
36 I(not g.is_digraph());
38 const size_t & n = g.get_num_nodes();
42 typename GT::Node * src = i.get_curr();
43 const size_t & nsrc = g.get_num_arcs(src);
48 if (nsrc + g.get_num_arcs(j.get_curr()) < n)
55 bool test_digraph(GT & g)
59 g.reset_counter_nodes();
65 const size_t & n = g.get_num_nodes();
69 typename GT::Node * src = i.get_curr();
73 typename GT::Node * tgt = j.get_current();
82 bool terminate =
true;
85 if (src == it.get_tgt_node())
109 bool operator () (GT & g)
112 return test_digraph(g);
114 return test_graph(g);
122 # endif // HAMILTONIAN_H
Definition: hamiltonian.H:29
Definition: tpl_graph.H:751
#define NODE_COUNTER(p)
Definition: aleph-graph.H:226
Definition: tpl_graph.H:794
Definition: tpl_graph.H:634
void next()
Adelanta el iterador una posición.
Definition: filter_iterator.H:143
Definition: tpl_graph.H:814
Definition: tpl_graph.H:694