Reputation: 1085
Does anyone know of a resource where I can implement a force directed layout algorithm for a large network without visualizing it. I tried R's igraph, but I couldn't figure out a way to get the x,y coordinates without the visualization.
Any tips would be great
Upvotes: 0
Views: 533
Reputation: 10825
The DrL layout in igraph is quite good for larger graphs. I am not sure why you could not get the coordinates, it is rather simple:
library(igraph)
g <- ba.game(10000, 2)
system.time(coords <- layout.drl(g))
# user system elapsed
# 93.629 0.726 96.424
dim(coords)
# [1] 10000 2
Upvotes: 4