Dear all,
I'm doing some experiments with igraph and in particular with graph layouts.
I can't figure out how to apply a layout to a given (real) graph avoiding
node overlaps.

In the following example if the variable NumOfNodes is setted to a small
value (10) the
layout function generates a plot without node overlaps. But even with a
not-so-big number
of nodes (50) plotted graph has almost all nodes overlapped by neighbors
vertices.
The problem gets even worst if I increase vertex size.

# R code
require(igraph)

NumOfNodes <- 10

g <- barabasi.game(NumOfNodes)
g$layout <- layout.reingold.tilford(g)
plot(g)

NumOfNodes <- 50

g <- barabasi.game(NumOfNodes)
g$layout <- layout.reingold.tilford(g)
plot(g)

Actually I'm using GraphViz which has an option to avoid overlaps but I
can't find
something similar in igraph documentation.

Can someone point me to the rigth direction ?
Thank you in advance.

a
-- 
View this message in context: 
http://r.789695.n4.nabble.com/igraph-graph-layout-and-node-overlaps-tp2535297p2535297.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to