igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] graph.adjacency for directed, weighted graph


From: Gábor Csárdi
Subject: Re: [igraph] graph.adjacency for directed, weighted graph
Date: Wed, 9 Jan 2013 15:30:52 -0500

This is indeed a known bug, see
https://bugs.launchpad.net/igraph/+bug/1019624
for a workaround.

Gabor


On Wed, Jan 9, 2013 at 3:27 PM, Fletcher,Robert <address@hidden> wrote:

Dear list,

 

I am having a problem with creating an appropriate igraph object using the graph.adjacency function. My network is weighted and directed. When I use the following code:

 

Agraph<-graph.adjacency(A,mode="directed",weighted=TRUE, diag=FALSE)

 

The weights are not correct (this tends to  produce very small, non-zero values for E(Agraph)$weight). In this example, A is an integer matrix. This code worked on previous versions of igraph, but does not appear to be working in 0.6-3.  Any advice would be greatly appreciated.

 

Rob Fletcher

 

---------------------------------------------------------------

Robert Fletcher

Department of Wildlife Ecology and Conservation

318 Newins-Ziegler Hall

University of Florida/IFAS

Gainesville, FL 32611

Phone: 352-846-0632

E-mail: address@hidden

Web: http://plaza.ufl.edu/robert.fletcher/

 


_______________________________________________
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]