[Top][All Lists]

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

[igraph] edge attribute access by name

From: Sam Steingold
Subject: [igraph] edge attribute access by name
Date: Sun, 14 Apr 2013 17:26:11 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

How do I get the vector of edge attributes by name?
> gr
IGRAPH DN-- 404 2637 -- 
+ attr: name (v/c), domain (e/c), url (e/c)
> E(gr)$domain
  [1] "www.foo.com" "www.foo.com" "www.foo.com" "www.foo.com"
> E(gr)[["domain"]]
Error in E(gr)[["domain"]] : subscript out of bounds

how do I get the vector of attributes given string "domain"?


Sam Steingold (http://sds.podval.org/) on Ubuntu 12.10 (quantal) X 11.0.11300000
http://www.childpsy.net/ http://camera.org http://honestreporting.com
http://dhimmi.com http://pmw.org.il http://think-israel.org
If money were measured in piles, I would have had a pit of it.

reply via email to

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