boost graph library: usage of undirected_graph
Hi there.
Have next declarations:
1 2 3 4 5 6 7 8 9 10 11
|
#include <string>
#include <boost/graph/adjacency_list.hpp>
//#include <boost/graph/undirected_graph.hpp>
#include <boost/graph/undirected_dfs.hpp>
#include <boost/cstdlib.hpp>
#include <iostream>
typedef adjacency_list<vecS, vecS, undirectedS, no_property, property<edge_color_t, default_color_type>> graph_t;
const std::size_t N = 100500;
graph_t g(N);
|
with alll of them next code works well (i and j are integers):
but once i changed declaration to that:
1 2
|
#include <boost/graph/undirected_graph.hpp>
typedef undirected_graph<no_property, property<edge_color_t, default_color_type> > graph_t;
|
add_edge won't compile anymore... What could it be?
Last edited on
Topic archived. No new replies allowed.