31 # include <tpl_graph.H> 32 # include <tpl_matgraph.H> 59 template <
class GT,
class SA = Dft_Show_Arc<GT> >
67 for (
int k = 0; k < n; k++)
69 for (
int i = 0; i < n; i++)
70 for (
int j = 0; j < n; j++)
71 mat(i, j) = mat_prev(i, j) or
72 (mat_prev(i, k) and mat_prev(k, j));
93 template <
class GT,
class SA = Dft_Show_Arc<GT> >
111 warshall_compute_transitive_clausure <GT, SA> (g, mat);
116 # endif // WARSHALL_H GT * get_list_graph()
Definition: tpl_matgraph.H:1220
Definition: tpl_matgraph.H:1099
void warshall_compute_transitive_clausure(GT &g, Bit_Mat_Graph< GT, SA > &mat)
Definition: warshall.H:60
void operator()(GT &g, Bit_Mat_Graph< GT > &mat) const
Definition: warshall.H:109
Definition: warshall.H:94
const size_t & get_num_nodes() const
Retorna el número de nodos del grafo (dimensión de la matriz).
Definition: tpl_matgraph.H:1180
void set_list_graph(GT &g)
Definition: tpl_matgraph.H:1210