|
From: | address@hidden |
Subject: | Re: [igraph] Error in using the function subcomponent( ) |
Date: | Tue, 25 Feb 2014 10:01:54 +0800 |
Thank you.
address@hidden From: Gábor
Csárdi
Date: 2014-02-24 22:45
Subject: Re: [igraph] Error in using the function subcomponent(
) On Mon, Feb 24, 2014 at 9:29 AM, address@hidden <address@hidden> wrote:
No. Just calculate it by hand for your graph.
Yes, because vertices are numbered from zero in an 'edgelist' file.
You need to add one to the numbers in the file, to get the ids in R igraph.
So when you write subcomponent(g, 4, "out") that belongs to vertex 3 in your
file. Which does have an outgoing edge, so subcomponent(g, 4, "out") will be
c(4, 3) I guess
The result will never be NULL, anyway, as it always contains the vertex
itself.
G.
|
[Prev in Thread] | Current Thread | [Next in Thread] |