igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] clusters does not like empty string node names


From: Gábor Csárdi
Subject: Re: [igraph] clusters does not like empty string node names
Date: Thu, 23 Feb 2012 17:52:18 -0500

Yep, this seems to be a bug. The empty node name becomes NA, and
messes up the graph structure.

Thanks,
G.

On Mon, Feb 20, 2012 at 11:34 AM, Katharina Zweig
<address@hidden> wrote:
> Dear all,
>
> I just found an interesting behavior of the clusters function which might be
> considered a bug. Here is the minimal code to produce the result:
>
>> v1 <- c("", "Anne", "Bert", "Charlotte")
>> v2 <- c("", "Bert", "Charlotte", "Anne")
>> df <- data.frame(v1, v2)
>> g <- graph.data.frame(df)
>> summary(g)
>>clusters(g)
>
> As you can see there should be a single node with an empty string name and a
> triangle between the other three nodes but due to the empty string name of
> the first node the  clusters function thinks that all nodes are singletons.
> It seems to be independent of the order in which the 'empty' node name is
> given.  It  got worsed, when I replaced one of the empty names by a real
> string: my R GUI crashed....
>
> Hope that helps.
> Nina
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help



-- 
Gabor Csardi <address@hidden>     MTA KFKI RMKI



reply via email to

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