[Top][All Lists]

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

Re: [igraph] Representation of weighted links

From: Gábor Csárdi
Subject: Re: [igraph] Representation of weighted links
Date: Tue, 14 Jul 2009 09:21:39 +0200

Dear Guna,

hmmm, I didn't know you can plot an adjacency matrix with 'plot', at
least this is not doing something meaningful for me:

> A <- matrix(sample(0:1, 100, rep=TRUE), 10)
> plot(A)

Btw, are you using R at all? Moreover, are you using igraph at all?

If the answer is 'yes' to both of this questions, and your weighted
adjacency matrix is called 'A', then this does the job:

g <- graph.adjacency(A, weighed=TRUE)
plot(g, layout=layout.fruchterman.reingold)


On Tue, Jul 14, 2009 at 8:10 AM, guna sekaran<address@hidden> wrote:
> Dear friends..
> How can be display the weights of links (or edges) in the ploted graph? Is
> there any special routine ?
> To represent weighted network i used Adjacency Matrix. To plot the adjacency
> i used "plot" command.
> Regards
> Guna.
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help

Gabor Csardi <address@hidden>     UNIL DGM

reply via email to

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