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
_______________________________________________
igraph-help mailing list
igraph-help@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to