[Graph] Problem with the add_edge() function
Hi All
I am having problem with the add_edge function.
I have a graph that has more than 3 million edges from a
triangulation. When I try to fill the graph with these edges
the program terminates. I have filled the graph with approximately 1 500
000 successfully but it will not take in more. Sample code is below
//Code
typedef adjacency_list < listS, vecS, undirectedS, VertexProperty,
EdgeProperty > sGraph m_graph;
m_graph = sGraph(m_scan.size()); // scan size is 2 500 000
pair
I don't see anything obviously wrong here - have you tried using listS as your edge-list data structure? I am curious if vector is just unable to allocate sufficient contiguous memory. (You might also try to catch whatever is causing the program termination, that would be helpful in trying to root out the cause). Justin
participants (2)
-
Justin Leonard
-
Willard Mapurisa