
28 Jan
2009
28 Jan
'09
11:38 p.m.
template <class Graph> inline Graph orthogonality_relation() { typedef std::pair<unsigned int, unsigned int> edge_type; std::vector<edge_type> ev; Graph g(ev.begin(), ev.end(), 0, 0); return g; }
typedef boost::adjacency_list<boost::listS, boost::vecS, boost::undirectedS> UndirectedGraph;
Its probably a collaboration of problems between the pair<unsigned, unsigned> and the listS in the adjacency list. It looks like the graph is expecting a vertex descriptor to be a pointer (hence the unary *), but it's getting an unsigned (which can't be dereferenced). Try changing listS to vecS and see if that fixes the problem. Andrew Sutton andrew.n.sutton@gmail.com