On 11/21/2008 06:27 PM, Rui Carvalho wrote:
Hi,
After installing the new ver I get the same results as you do. However, I get an error when I type the following (taken from the documentation):
graph-tool --correlated-configurational-model="N=20000,inv_pjk_ceil=\"(inv_poisson(p,5) ,inv_poisson(r,5))\",progress" \--save graph.xml.bz2
returns: adding vertices: 1 of 20000 (0%)graph-tool: error during evaluation of command --correlated-configurational-model=N=20000,inv_pjk_ceil="(inv_poisson(p,5),i nv_poisson(r,5))",progress: <lambda>() takes no arguments (2 given)
My understanding is that the documentation is somehow partially out-of-date due to the ongoing upgrade of graph-tool, but I just wanted to check that this is the reason for the error I'm getting.
Yes, there is a discrepancy with the documentation. You should do: "lambda p,r: (inv_poisson(p,5), inv_poisson(r,5))". All this will be largely deprecate with the new version of graph-tool as (purely) a python library. It should be coming out "real soon now"™, and will include up-to-date documentation. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@forked.de>