#include // FIXME none.hpp is broken //#include #include #include using namespace std; using namespace origin; typedef adjacency_matrix graph_type; int main() { // Make DAG graph_type g(3); graph_type g_closure(3); //graph_type g_closure(1); g.add_edge(0,1); g.add_edge(1,2); cout << "Made graph\n"; //transitive_closure(g, g_closure); // Original edges std::cout << "Edges in g: "; for(auto i = g.vertices().begin(); i != g.vertices().end(); ++i) cout << **i << ' '; cout << '\n'; // Edegs in the transitive closure of g /*std::cout << "Edges in the transitive closure of g: "; for(auto i = g_closure.vertices().begin(); i != g_closure.vertices().end(); ++i) cout << **i << ' '; cout << '\n';*/ return 0; }