Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Creating a large graph with Boost Graph Library

807575Jan 17 2010 — edited Jan 17 2010
Hello,
I will very appreciate if you could help me with this one….

I am trying to create a graph with Boost using adjacency_list…..
The graph is representing real road network (junctions and streets) and have ~150000 vertices and ~300000 edges…
I have a txt file containing this network connections… It look like this:
1,2 (means 1 connected with 2)
2,3 (means 2 connected with 3)
2,4 etc…
3,5

so I read it line by line and in parallel add edge , with add_edge function…
while (not EOF)
{
add_edge(i,j)
}

The problem is that it takes more than two days (48 hours !) just to build this graph…
Obviously, it is not reasonable, especially if I want to make some minor change and re-run my application again…

Can you please suggest me, is it any other faster way to create such large graph ?
What am I doing wrong ?
Or may be – it just works this way…. ?

Thanks in advance,
Arik
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 14 2010
Added on Jan 17 2010
1 comment
101 views