igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Accessing nodes from a clique


From: Tamas Nepusz
Subject: Re: [igraph] Accessing nodes from a clique
Date: Mon, 14 Sep 2015 16:22:07 +0200

as.vector(cls[[1]]) seems to do the trick for me.

T.
T.


On Mon, Sep 14, 2015 at 2:51 PM, Thomas Chesney
<address@hidden> wrote:
> Sorry if this question is really about R rather than iGraph.
>
> I have run:
>
> cls <- cliques(g, min=3, max=3)
>
> and get this:
>
> cls[1]
> [[1]]
> + 3/96 vertices, named:
> [1] 604  7240 8560
>
> The numbers are the names of nodes but I want the node index (or iGraph node 
> number or whatever it is called).
>
> unlisting gives me:
>
> unlist(cls[1])
>  604 7240 8560
>    1    5    7
>
> Now I can see the node numbers, but please, how do I get at them? I'd like:
>
> [1] 1 5 7
>
> but even getting at them one at a time would be useful.
>
> Thank you,
>
> Thomas Chesney
>
>
>
> This message and any attachment are intended solely for the addressee
> and may contain confidential information. If you have received this
> message in error, please send it back to me, and immediately delete it.
>
> Please do not use, copy or disclose the information contained in this
> message or in any attachment.  Any views or opinions expressed by the
> author of this email do not necessarily reflect the views of the
> University of Nottingham.
>
> This message has been checked for viruses but the contents of an
> attachment may still contain software viruses which could damage your
> computer system, you are advised to perform your own checks. Email
> communications with the University of Nottingham may be monitored as
> permitted by UK legislation.
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

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