[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] vcount(g) and V(g) with missing items
From: |
Knut Krueger |
Subject: |
[igraph] vcount(g) and V(g) with missing items |
Date: |
Mon, 12 Jul 2010 15:41:40 +0200 |
User-agent: |
Thunderbird 2.0.0.24 (Windows/20100228) |
Hi to all,
I have a second observation with missing items
f.e
first observation
max_items <- 10
[0] 0 -- 1
[1] 1 -- 2
[2] 2 -- 3
[3] 3 -- 4
[4] 4 -- 5
[5] 5 -- 6
[6] 6 -- 7
[7] 7 -- 8
[8] 8 -- 9
[9] 0 -- 9
second observation with missing item 3
max_items <- 9
[0] 0 -- 1
[1] 1 -- 2
[2] 4 -- 5
[3] 5 -- 6
[4] 6 -- 7
[5] 7 -- 8
[6] 8 -- 9
[7] 0 -- 9
g <- graph.empty(n=max_items, directed=TRUE)
g <- graph( igraph_data,n=max_items, directed=TRUE )
vcount(g)
vcount is calulating 10 items
V(g)$color <- heat.colors(max_items)
V(g)$color has 10 items
and I would need 9 items
What could i do to omit item nr 3
Kind regards Knut
.. I hope I explained the problem understandable
- [igraph] vcount(g) and V(g) with missing items,
Knut Krueger <=