Re: [graph-tool] Compilation error with Weave inline
Hi Tiago, thanks for you reply: On 06/28/2013 08:00 AM, graph-tool-request@skewed.de wrote:
The code you're trying to run is not valid C++ (you cannot mix typedefs and variable definitions). Furthermore you should not try to guess the type of the graph, and instead you should use the pre-defined typedefs.
I see. Time to grab a copy of intro to C++ then ;-)
You have to use the following code:
_add_code = ''' using namespace boost;
typedef graph_traits<graph_graph_t>::vertex_descriptor vertex_t;
for (int i = 0; i < n; ++i) { add_edge(vertex_t(edges[i, 0]), vertex_t(edges[i, 1]), graph); } '''
Modifying your script with the above code worked for me. Note that you have to use the development version of graph-tool in git, since the current version has a bug in the run_action module.
I cloned the repository, ran autogen.sh, but it doesn't produce any configure script (attached the console output). Am I missing some step?
I think that a function to add several edges at once is a useful one. If you open a ticket for it, I'll implement it when I find some time.
Sure!
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? Everything should work fine with the properly overloaded functions... I.e., whenever you call add_edge(), it should select the appropriately overloaded function for the correct type.
Cheers, Tiago
-- Giovanni Luca Ciampaglia Postdoctoral fellow Center for Complex Networks and Systems Research Indiana University ✎ 910 E 10th St ∙ Bloomington ∙ IN 47408 ☞ http://cnets.indiana.edu/ ✉ gciampag@indiana.edu
On 06/28/2013 04:24 PM, Giovanni Luca Ciampaglia wrote:
I cloned the repository, ran autogen.sh, but it doesn't produce any configure script (attached the console output). Am I missing some step?
Really strange... What distribution/version do you have, and what version of autoconf/automake do you have installed? Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
On Sat 29 Jun 2013 06:22:46 AM EDT, Tiago de Paula Peixoto wrote:
On 06/28/2013 04:24 PM, Giovanni Luca Ciampaglia wrote:
I cloned the repository, ran autogen.sh, but it doesn't produce any configure script (attached the console output). Am I missing some step?
Really strange... What distribution/version do you have, and what version of autoconf/automake do you have installed?
Red Hat 5.9 Autoconf 2.59 Automake 1.9.6 -- Giovanni Luca Ciampaglia Postdoctoral fellow Center for Complex Networks and Systems Research Indiana University ✎ 910 E 10th St ∙ Bloomington ∙ IN 47408 ☞ http://cnets.indiana.edu/ ✉ gciampag@indiana.edu
On 06/29/2013 06:13 PM, Giovanni Luca Ciampaglia wrote:
On Sat 29 Jun 2013 06:22:46 AM EDT, Tiago de Paula Peixoto wrote:
On 06/28/2013 04:24 PM, Giovanni Luca Ciampaglia wrote:
I cloned the repository, ran autogen.sh, but it doesn't produce any configure script (attached the console output). Am I missing some step?
Really strange... What distribution/version do you have, and what version of autoconf/automake do you have installed?
Red Hat 5.9 Autoconf 2.59 Automake 1.9.6
These are somewhat old... Here I use Autoconf 2.69 and Automake 1.14. Would it be possible for you to update these? I didn't see any actual error in the output you sent. Did you try running ./autogen.sh multiple times? Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
On Mon 01 Jul 2013 09:36:50 AM EDT, Tiago de Paula Peixoto wrote:
On 06/29/2013 06:13 PM, Giovanni Luca Ciampaglia wrote:
On Sat 29 Jun 2013 06:22:46 AM EDT, Tiago de Paula Peixoto wrote:
On 06/28/2013 04:24 PM, Giovanni Luca Ciampaglia wrote:
I cloned the repository, ran autogen.sh, but it doesn't produce any configure script (attached the console output). Am I missing some step?
Really strange... What distribution/version do you have, and what version of autoconf/automake do you have installed?
Red Hat 5.9 Autoconf 2.59 Automake 1.9.6
These are somewhat old... Here I use Autoconf 2.69 and Automake 1.14. Would it be possible for you to update these?
I didn't see any actual error in the output you sent. Did you try running ./autogen.sh multiple times?
Hi, sorry for the delay! I tried on another machine with ubuntu 13.04 and it did generate the configure script. I'll try to push our sysadmins for updating our servers' distribution. Thanks! -- Giovanni Luca Ciampaglia Postdoctoral fellow Center for Complex Networks and Systems Research Indiana University ✎ 910 E 10th St ∙ Bloomington ∙ IN 47408 ☞ http://cnets.indiana.edu/ ✉ gciampag@indiana.edu
participants (2)
-
Giovanni Luca Ciampaglia -
Tiago de Paula Peixoto