igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] edge attribute access by name


From: Gábor Csárdi
Subject: Re: [igraph] edge attribute access by name
Date: Sun, 14 Apr 2013 17:51:52 -0400

get.edge.attribute

G.


On Sun, Apr 14, 2013 at 5:26 PM, Sam Steingold <address@hidden> wrote:
How do I get the vector of edge attributes by name?
E.g.,
> 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"?

thanks!

--
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.

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



--
Gabor Csardi <address@hidden>     MTA KFKI RMKI

reply via email to

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