[R] per-vertex statistics of edge weights

Sam Steingold sds at gnu.org
Wed Aug 15 22:10:14 CEST 2012


> * Sam Steingold <fqf at tah.bet> [2012-08-15 14:04:18 -0400]:
>
>> sapply(vertices$vertex, function (v) mean(E(g)[inc(v)]$weight))
> Note: no visible global function definition for 'inc' 
> [1] 1.333333 1.000000 2.500000 1.666667
>
> but I was wondering if this is TRT, given the correct answer with a
> scary note.

Also, this takes forever and consumes almost all 8GB RAM.
It has been running on

--8<---------------cut here---------------start------------->8---
IGRAPH DNW- 18590 6734992 -- 
+ attr: name (v/c), count (v/n), weight (e/n)
--8<---------------cut here---------------end--------------->8---

for an hour and a half now.

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://memri.org http://jihadwatch.org
http://www.PetitionOnline.com/tap12009/ http://truepeace.org
Please express your antipathy in the suicidal form.



More information about the R-help mailing list