crock1255
crock1255

Reputation: 1085

Large Network Layout algorithm without visualization

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

Answers (1)

Gabor Csardi
Gabor Csardi

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

Related Questions