
This is again a newbie question.
I want to create a graph based on some input file. I parse this file
and in the code I want to check whether the link already exists
int current=strToInt(tokens[0]);
int numedges=strToInt(tokens[1]);
for(int i=0;i

Hi Tom,
2006/9/18, Tom Lenaerts
As you can see I call the function boost::edge() to check whether there is already a link between first and second. As soon as I do this I get an error in Xcode.
I think you need to specify your error more precisely. What error do
you get? A runtime or compile-time error? And please add the error
message.
Another good thing is to post a(n extracted) test case (including
main). So one can easily try to compile your program and see what type
Vertex, Edge, and especially the Graph is. There are several reasons
for this, the one you will like most is, that more people will help
you ;)
I just added the sourrounding code how I'd do it, and that worked for me:
#include
participants (2)
-
Stephan Diederich
-
Tom Lenaerts