Hi,

Thanks for your answer. It seems to be what I am looking for but unfortunately, 
the results looks like I just threw vertices randomly :/

Below, you will find what I tried. Where am I wrong ?

Thanks,

Hug

vorder <- data.frame(
        vnames=character(nrow(data)),
        vrank=integer(nrow(data)),
        vdegree=integer(nrow(data)),
        vorder=integer(nrow(data)),
        stringsAsFactors=FALSE)
vorder[,1]<-V(g)$name
vorder[,2]<-V(g)$number
vorder[,3]<-V(g)$degree
vorder<-vorder[order(-vorder[,2], vorder[,3]),]
vorder[,4]<-seq(1,nrow(data))
vorder<-vorder[order(vorder[,1]),]

g <- permute.vertices(g, vorder[,4])


-----Message d'origine-----
De : [email protected] 
[mailto:[email protected]] De la part de 
Gábor Csárdi
Envoyé : lundi 6 octobre 2014 08:40
À : Help for igraph users
Objet : Re: [igraph] Draw vertices in a certain order

Hi, permute them with permute.vertices() before the plotting. This is currently 
the only way to do it, as you cannot specify the order for plot().

Gabor

On Mon, Oct 6, 2014 at 2:32 AM, Hugues François <[email protected]> 
wrote:
> Hello,
>
> I have a graph with numerous vertices (215), plot from an adjacency matrix. 
> Some vertices overlap others. I have a rank attribute that I would like to 
> use for ordering plotting order to show important vertices (firstly draw rank 
> 4 vertices, then rank 3, then rank2, etc.). If there a way to achieve that I 
> didn't find it ?
>
> Regards,
>
> Hug
>
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to