[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Handling cliques(g) identification
From: |
Tamás Nepusz |
Subject: |
Re: [igraph] Handling cliques(g) identification |
Date: |
Fri, 6 Jan 2012 11:32:51 +0100 |
Hello,
You can do something like this:
names <- V(g)$name
lapply(cliques(g), function(x) { names[x] })
where V(g)$name retrieves the "name" vertex attribute of the graph. You may use
any vertex attribute of course.
--
Tamas
On 5 Jan 2012, at 15:45, Carlos Eduardo wrote:
> Hello,
>
> Considering command cliques(g), may anyone tell me whether is possible to
> visualize other vertex identifications? For instance, the original command
> output (bellow) give me vertex id by default. I would like changing from this
> original identification to other identification named “sigla” for instance
> (it is string type).
>
> From (id):
> [[391]]
> [1] 9 10 13 15 18 19 20
>
> To (sigla):
> [[391]]
> [1] A F H M N Q R
>
> Thanks in advance and my wishes of amazing ideas in 2012!!!!
>
> Cadu
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help