Hi all, Has anyone build (maybe it needs some minor modifications) and used graph-tool with C++ code directly? Similar to a BGL wrapper for example. Best, Tasos
Hi, On 08/03/2013 11:33 AM, Tasos Varoudis wrote:
Hi all,
Has anyone build (maybe it needs some minor modifications) and used graph-tool with C++ code directly? Similar to a BGL wrapper for example.
It is relatively easy to extend graph-tool with additional algorithms written in C++. I'm planning to document this whenever I find some free time. However, If you want to use the existing algorithms in C++ code, then there is no interface available, other than to use the template functions directly from the header files. Most functions make very few assumptions about the underlying graph structures, so you should be able to use them with the usual BGL graphs without a problem. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Hi, Ill give it a try. Do you think trying to change "python objects" from the functions might help in bundling it up for C++ use? or not worth it? Thanks T On 5 Aug 2013, at 10:53, Tiago de Paula Peixoto <tiago@skewed.de> wrote:
Hi,
On 08/03/2013 11:33 AM, Tasos Varoudis wrote:
Hi all,
Has anyone build (maybe it needs some minor modifications) and used graph-tool with C++ code directly? Similar to a BGL wrapper for example.
It is relatively easy to extend graph-tool with additional algorithms written in C++. I'm planning to document this whenever I find some free time.
However, If you want to use the existing algorithms in C++ code, then there is no interface available, other than to use the template functions directly from the header files. Most functions make very few assumptions about the underlying graph structures, so you should be able to use them with the usual BGL graphs without a problem.
Cheers, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
On 08/08/2013 03:50 PM, Tasos Varoudis wrote:
Hi,
Ill give it a try. Do you think trying to change "python objects" from the functions might help in bundling it up for C++ use? or not worth it?
As I said, the best option would be simply to use the C++ templates directly. Anything else would be pointless, IMO. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (2)
-
Tasos Varoudis -
Tiago de Paula Peixoto