[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] layout with one fixed node
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] layout with one fixed node |
Date: |
Mon, 11 Mar 2013 11:47:50 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 |
Hi,
> I would like a layout for a graph that places a given node at the centre of
> the plot, it's immediate neighbors in a circle around it and their neighbors
> further out again. I don't really want to manually specify the location of
> all the nodes, so am hoping there might some cool layout function already in
> existence for this? The layouts supplied with iGraph (in R) don't quite hit
> the mark.
What's wrong with layout.reingold.tilford(graph, root=x, circular=TRUE)?
(Apart from the fact that it is simply a planar top-down Reingold-Tilford
layout with a polar coordinate transformation, so edges may end up crossing
each other even if they were non-crossing in the top-down layout).
Cheers,
Tamas