igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] removing vertices from a graph


From: Gábor Csárdi
Subject: Re: [igraph] removing vertices from a graph
Date: Tue, 25 Aug 2009 09:01:39 +0200

On Tue, Aug 25, 2009 at 12:52 AM, Eric Sun<address@hidden> wrote:
[...]
> Example:
>> degrees = degree(graph)
>> which.max(degrees)
> [1] 274731
>> degrees[274731]
> [1] 5232
>
> I’d like to remove node #274731 and return the new graph.

This is actually vertex 274730. This is the igraph zero-one catch,
vertices are indexed from zero, but R vectors are indexed from one.

Tamas already answered the removal part....

Gabor

> Thanks in advance!
> Eric
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

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