igraph-help
[Top][All Lists]
Advanced

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

[igraph] Problem Deleting Vertices (and creating Sub-Graphs)


From: Ali Ilhan
Subject: [igraph] Problem Deleting Vertices (and creating Sub-Graphs)
Date: Mon, 4 Jun 2018 14:10:58 +0300

Dear all,

I have been trying to eliminate vertices with degrees lower than certain thresholds. It should be pretty straightforward but I am having problems. I used the simple code below

Either:

mygraph2_3<-delete.vertices(mygraph2, V(mygraph2)[degree(mygraph2) < 10])


OrĀ 

e<-degree(mygraph2)

mygraph2_3<-induced_subgraph(mygraph2, v=(e>10))


In either case, when I check the degrees of the remaining vertices there are many with degrees more or less than 10 (and the mean degree for the sub-network is much less than 10). The code does something but I am not sure what it is really doing. All I want to do is to eliminate vertices with degrees less than 10.

Any help is greatly appreciated,

ali ilhan

reply via email to

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