|
From: | address@hidden |
Subject: | Re: [igraph] Error in using the function subcomponent( ) |
Date: | Mon, 24 Feb 2014 22:29:48 +0800 |
Hi!
Thanks for your kind reply. But I still have two question about the
function subcomponent( ):
1. Should not the result of " subcomponent(g, 4, "all")" be the union
of "subcomponent(g, 4, "in")" and "subcomponent(g, 4, "out")"?
2. The graph is a directed network with 10 vertices and 10 edges and
the vertice 0 is an isolated node.
Even if 4 in the source code is 5 in the graph, the
result of subcomponent(g, 4, "out") is supposed to be NULL, because there is
no vertice could be reached from vertice 5 in graph.
Here is the graph:
1 5
1 7
3 2
4 5
4 7
4 9
9 4
6 9
8 7
9 2
best
Xueming address@hidden From: Gábor
Csárdi
Date: 2014-02-23 23:42
Subject: Re: [igraph] Error in using the function subcomponent(
) Hi! On Sun, Feb 23, 2014 at 9:43 AM, address@hidden <address@hidden> wrote:
The "edgelist" file format is indexed from zero, so what is 4 in your file
will be 5 in your graph.
Gabor
|
[Prev in Thread] | Current Thread | [Next in Thread] |