igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Bug report


From: Gabor Csardi
Subject: Re: [igraph] Bug report
Date: Sat, 9 Feb 2008 11:00:42 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

David, thanks for the report, i agree that this is a bug, 
either in the code, or in the documentation.
I'll correct it in a minute.

G.

On Sat, Feb 09, 2008 at 01:43:35AM +0100, David Morton EPFL wrote:
> Hello,
> I just wanted to point out a little bug I've run into recently with the
> graph.adjacency function.
>  
> start with
>   m <- matrix(c(0,1,1,0),nrow=2)
> then
>   graph.adjacency(m, mode="undirected")
> works fine, but
>   g <- graph.adjacency(m, mode="undirected",weighted=TRUE)
> doubles every non-loop edges in g. For example
>   get.adjacency(g)
> would output
>   0  2
>   2  0
> instead of
>   0  1
>   1  0
> This problem occurs for any symmetric m.
> I run up-to-date versions of igraph and R on both Linux and Windows systems.
> 
> Anyway, congratulations for igraph. It is a great and powerful software I use
> constantly.
> Cheers!
> 
> --
> David Morton de Lachapelle

> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help


-- 
Csardi Gabor <address@hidden>    UNIL DGM




reply via email to

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