Ali Ogulcan Ilhan
2018-06-05 22:57:53 UTC
Hi,
Thanks a lot, this makes sense, I donât know why I could not think of it.
ali
Thanks a lot, this makes sense, I donât know why I could not think of it.
ali
If you remove a vertex from the graph, all edges connected to it are also removed. Its degree in the new graph could be smaller than 10.
Yang
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
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
https://lists.nongnu.org/mailman/listinfo/igraph-help <https://lists.nongnu.org/mailman/listinfo/igraph-help>
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <x-msg://5/#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>_______________________________________________
igraph-help mailing list
https://lists.nongnu.org/mailman/listinfo/igraph-help
Yang
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
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
https://lists.nongnu.org/mailman/listinfo/igraph-help <https://lists.nongnu.org/mailman/listinfo/igraph-help>
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <x-msg://5/#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>_______________________________________________
igraph-help mailing list
https://lists.nongnu.org/mailman/listinfo/igraph-help