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?