How can I choose one vertex at a time, from a vertex sequence, from the highest degree to the lowest? That's what I tried:
peso <- sort(V(grafo)[id]$wei, decreasing=TRUE)
pesosm <- which(V(grafo)[id]$wei==peso)
V(grafo)$wei is where I stored each vertex degree. This didn't work. Thanks in advance.