Hi,
I recently moved from NetworkX to graph-tool and I am very impressed with the
performance increase, good job!
A bit for learning and also for speeding up a code that creates a graph
dynamically, I am trying to implement a batch insertion function with Weave, but
I am running into a compilation error. My knowledge of C++ is sketchy at best so
please forgive if I am asking something really dumb -- though I suspect that the
problem is more in the way graph_tool interacts with the BGL. Anyway, the code
is here:
https://gist.github.com/junkieDolphin/5868934
The error I get is:
/home/giovanni/.python27_compiled/sc_d9500bfc215fd29698821c3db4d6aeb81.cpp:822:13:
error: ‘adjacency_list’ does not name a type
(full trace below)
So I suspect the problem is in how I tell run_inline to include the proper
header files in the generated source. Putting them before the loop is clearly
not an option, because it would put the #includes in the middle of a scope. Any
idea?
Alternatively, how do I get to call BGL's add_edge with the wrapped graph type,
i.e. the one typedef'd automatically by inline?
Thanks!
Giovanni