[Top][All Lists]

[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
for a workaround.


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

Gabor Csardi <address@hidden>     MTA KFKI RMKI

reply via email to

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