igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Re: Hello


From: Tamas Nepusz
Subject: Re: [igraph] Re: Hello
Date: Mon, 16 Feb 2009 10:50:08 +0000

Hi,

This is simply a weighted adjacency matrix. You should be able to convert it into an igraph graph in R using:

g <- graph.adjacency(adjm, mode="directed", weighted=TRUE)

(assuming that the variable "adjm" contains your original matrix)

--
Tamas

On 2009.02.16., at 1:07, Walk to Sun wrote:

Dear Dr Gábor Csárdi,

Below are data I would like to use to create graph. The number represents times of contacts

Section  A     B       C       D    E      F      G       H
A          0.24  0.02  0.50  0.23  0.13  0.02  0.03  0.09
B          0.04  0.11  0.05  0.07  0.08  0.24  0.70  0.17
C          0.09  0.01  0.20  0.06  0.03  0.01  0.01  0.03
D          0.01  0.02  0.01  0.60  0.08  0.02  0.02  0.03
E          0.11  0.05  0.07  0.08  0.07  0.09  0.10  0.12
F          0.03  0.04  0.06  0.06  0.33  0.03  0.04  0.07
G         0.04   0.10  0.04  0.07  0.07  0.09  0.10  0.12
H          0.07  0.09  0.10  0.12  0.11  0.05  0.07  0.08

How to input in the table you gave me?
http://cneurocvs.rmki.kfki.hu/igraphbook/igraphbook-creating.html#id2534910

Best regards

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





reply via email to

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