After loading the graph in R, I would like to extract the list with vertices names and their degrees. I know how to save both variables in vectors, however they seem to be in different orders. For example, the degree of the first element in the vector with vertices names is not allocated in the first position in the degree vector.
Here is what I am doing: