[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] extract network stats for a subset of nodes
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] extract network stats for a subset of nodes |
Date: |
Mon, 12 Oct 2009 11:07:57 +0100 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
Dear Will,
I'm not an R expert, so there might be an easier way to do that, but
this seems to work:
> g <- grg.game(100, 0.2)
> V(g)$name <- LETTERS
> degree(g, which(V(g)$name %in% c("A", "F", "X")))
--
Tamas