Closed gaborcsardi closed 10 years ago
From #40:
library(igraph) set.seed(12345) g <- erdos.renyi.game(15, .4) w <- -log(runif(ecount(g))) X1 <- adjacency.spectral.embedding(g, 2, weights= w) E(g)$weight <- w X2 <- adjacency.spectral.embedding(g, 2) X1$D # [1] 7.672248 -6.114151 X2$D # [1] 7.844437 -5.921473
Awesome! Thanks
From #40: