[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] R versus Python

From: Thomas
Subject: [igraph] R versus Python
Date: Fri, 2 Dec 2011 09:33:42 +0000

I am stuck in Circle 3 of The R Inferno (http://www.burns-stat.com/pages/Tutor/R_inferno.pdf ) which means my programs are running **slow** because of failing to vectorize. Every program I write seems to have two or three nested for loops.

Anyway, I'm thinking of switching to Python and would be interested in hearing from anyone with an opinion on this. The alternative is to write vectorised functions in R and use those (there are no standard functions available for a lot of what I am doing - growing and manipulating graphs), but as far as I understand it, if I write those in R it won't have any impact on speed, in fact it will slow everything down even more. The only way to get this working faster would be to write the function in C. But then if I'm writing C, why not do it all in C? But then I want to use some igraph functions and I don't have C code for those etc etc. So I'm going around and around on this one.

Seems like Python might not object to nested for, plus it has the igraph routines available.

Anyone got any advice?

Thank you!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]