[Top][All Lists]

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

Re: [igraph] how do I handle vertex sequences?

From: Tamás Nepusz
Subject: Re: [igraph] how do I handle vertex sequences?
Date: Tue, 7 Aug 2012 20:34:09 +0200

Hi Sam,  

> Vertex sequence:
> [1] "4d5d116b3c5c9722" "4d4fc9df7632d16c" "4f81243a251ab9fc" 
> "4f7e026f82252a3f"
> [5] "4f591a149dc8d90e" "4f68196bff1a2a27" "4f58d1b2f9f8ccea" 
> "4ec6644f3a2c1d22"
> ...
> how do I convert it to a vector? […]
> I need a vector of hex IDs above.
The hex IDs are stored in the "name" attribute of the graph, so all you need to 
do is "vs$name", where vs is the variable storing your vertex sequence. This 
gives you a vector with the values of the given attribute (i.e. "name") for all 
the vertices in the vertex sequence.


reply via email to

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