[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Subgraph with original numbers
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] Subgraph with original numbers |
Date: |
Thu, 16 Apr 2009 08:20:45 +0200 |
Hi,
assign a vertex attribute, those are kept by subgraph(). E.g.
g <- graph.ring(10)
V(g)$name <- letters[seq_len(vcount(g))]
V(g)$name
g2 <- subgraph(g, 5:9)
V(g2)$name
Gabor
On Thu, Apr 16, 2009 at 1:24 AM, Romildo Martins
<address@hidden> wrote:
> Hello,
>
> in subgraph function is possible generate a subgraph with the vertices
> original numbers?
>
> Thanks a lot!
>
> Romildo Martins Bezerra
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
--
Gabor Csardi <address@hidden> UNIL DGM