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
The error I get is:
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
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?