5 # include <tpl_graph.H>
6 # include <tpl_matgraph.H>
33 template <
class GT,
class SA = Dft_Show_Arc<GT> >
41 for (
int k = 0; k < n; k++)
43 for (
int i = 0; i < n; i++)
44 for (
int j = 0; j < n; j++)
45 mat(i, j) = mat_prev(i, j) or
46 (mat_prev(i, k) and mat_prev(k, j));
67 template <
class GT,
class SA = Dft_Show_Arc<GT> >
85 warshall_compute_transitive_clausure <GT, SA> (g, mat);
GT * get_list_graph()
Definition: tpl_matgraph.H:1193
const size_t & get_num_nodes() const
Retorna el número de nodos del grafo (dimensión de la matriz).
Definition: tpl_matgraph.H:1153
Definition: tpl_matgraph.H:1072
void warshall_compute_transitive_clausure(GT &g, Bit_Mat_Graph< GT, SA > &mat)
Definition: warshall.H:34
Definition: warshall.H:68
void operator()(GT &g, Bit_Mat_Graph< GT > &mat) const
Definition: warshall.H:83
void set_list_graph(GT &g)
Definition: tpl_matgraph.H:1183