[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] In trouble with subgraph
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] In trouble with subgraph |
Date: |
Sun, 22 Mar 2009 23:33:39 +0100 |
If you start posting to the list, then please continue the thread on
the list. Thanks.
Please also consider subscribing, because otherwise your messages will
be delayed. Thanks again.
I cannot see any error here, you asked for a subgraph with two nodes,
and they are not connected, so you got a graph with two vertices and
no edges.
Maybe it is not 'subgraph()' that you want, but something else.
G.
On Sun, Mar 22, 2009 at 11:28 PM, Chang Jin Shin <address@hidden> wrote:
> Hi Gabor
>
> Here are the code and results.
>
>> library(igraph)
>> g <- graph.ring(10)
>> g2 <- subgraph(g, c(2,4))
>> g2
> Vertices: 2
> Edges: 0
> Directed: FALSE
>
> With regards,
>
--
Gabor Csardi <address@hidden> UNIL DGM