|
From: | Matteo Fortini |
Subject: | Re: [igraph] prunning vertices |
Date: | Fri, 16 Jan 2015 14:41:52 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Hi, to delete vertices with degree==0 use g.delete_vertices(g.vs(_degree=0)) and you could also do g.delete_vertices(g.vs(name_notin=set(hashtags))) Note that set() helps a lot to speed up the lookup. Il 16/01/2015 14:30, Ahmed Abdeen Hamed
ha scritto:
|
[Prev in Thread] | Current Thread | [Next in Thread] |