also i assume you're using a numpy / C structure for all of this right?
Also depending on the number of cores you have you could try parallelizing
all of your loops with multiprocessing / if applicable  ~ GPU processing


On 17 December 2012 05:59, Guillaume Gay <[email protected]>wrote:

>  Le 17/12/2012 11:29, Tiago de Paula Peixoto a écrit :
>
> On 12/17/2012 11:28 AM, Guillaume Gay wrote:
>
>  Hi Tiago,
>
> Thanks for the blazing fast answer!
>
> It will sure do the job. I can't find it in the documentation though (it's 
> accessible online via ipython autocompletion and magic '?', but doesn't 
> appear on your web site).
>
>  Oops... Indeed. I'll add it in the next release.
>
> Cheers,
> Tiago
>
>
>
>
> _______________________________________________
> graph-tool mailing 
> [email protected]http://lists.skewed.de/mailman/listinfo/graph-tool
>
>  Ok cool..
>
> One more point:
>
> Is there a way to do the following differently:
>
> edge_x = g.new_edge_property()
> edge_x.a = np.array([x[e.source()] for e in g.edges()])
>
> with x being a vector property map.
> I plain English, is there a (more efficient) way to copy the vertex
> property map of every edge source to  an edge property map?
>
>
> Guillaume
>
>
> _______________________________________________
> graph-tool mailing list
> [email protected]
> http://lists.skewed.de/mailman/listinfo/graph-tool
>
>
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to