igraph-help
[Top][All Lists]
Advanced

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

[igraph] how do I handle vertex sequences?


From: Sam Steingold
Subject: [igraph] how do I handle vertex sequences?
Date: Tue, 07 Aug 2012 11:32:00 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Hi,
I have a vertex sequence:

Vertex sequence:
 [1] "4d5d116b3c5c9722" "4d4fc9df7632d16c" "4f81243a251ab9fc" "4f7e026f82252a3f"
 [5] "4f591a149dc8d90e" "4f68196bff1a2a27" "4f58d1b2f9f8ccea" "4ec6644f3a2c1d22"
...

how do I convert it to a vector?

> str(my)
Class 'igraph.vs'  atomic [1:36] 1 2 3 4 5 6 7 8 9 10 ...
  ..- attr(*, "env")=<environment: 0xbd003f8> 
> as.vector(my)
 [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
[26] 26 27 28 29 30 31 32 33 34 35 36

I need a vector of hex IDs above.

thanks!

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://dhimmi.com http://www.memritv.org
http://jihadwatch.org http://camera.org http://honestreporting.com
recursion, n: See recursion.



reply via email to

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