|
From: | address@hidden |
Subject: | Re: [igraph] Question about layout algorithm |
Date: | Mon, 7 Nov 2011 16:07:09 +0100 |
Here is an example.
W <- matrix(runif(100), 10)
W <- W+t(W)
W[ W<0.6 ] <- 0
g <- graph.adjacency(W, mode="undirected", weighted=TRUE, diag=F)
coords <- layout.fruchterman.reingold(g, weights=E(g)$weight)
plot(g, layout=coords, vertex.shape="none", vertex.label=NA, vertex.size=0)
[Prev in Thread] | Current Thread | [Next in Thread] |