#include using namespace std; #include "GrafoDirigido.h" int main () { try { GrafoDirigido miGrafo("ejemploAlcanzables.gr"); // miGrafo.mostrar(); for (int v = 0; v < miGrafo.cantidadDeVertices(); v++) { cout << "Verificando si todos son alcanzables desde " << v << ": "; if (miGrafo.todosAlcanzablesDesdeVertice(v)) cout << "si" << endl; else cout << "no" << endl; } } catch(string error) { cerr << error << endl; } }