igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] extracting lists


From: Thiago M. Venancio
Subject: [igraph] extracting lists
Date: Mon, 26 Jan 2009 16:23:16 -0500

Hi all,

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:

graph = read.graph("graph.txt", format="ncol")
deg = degree(graph)
vec = V(graph)

Any help is appreciated.

Best,

Thiago


reply via email to

[Prev in Thread] Current Thread [Next in Thread]