I am using R with igraph and I have a square matrix with weights. I want to sort it. I thought to use page.rank(g) and I got a corresponding vector and its values.
library(igraph)
g<-get.matrix()
page.rank(g)$value
page.rank(g)$vector
Now I want to sort using this values and visualizing it in a graph if it is possible.
Something similar to the following picture:

How I could do this?
Choose a force-based layout and set the vertex size (
vertex.size) to be proportional to the page rank values. See an example on the igraph homepage on how to set the vertex size. (The example usestkplot, but you can just useplotinstead of that.) You can set the vertex labels via thevertex.labelargument toplot, and\nis allowed to make multi-line labels.