Hi Ven,
Thanks for responding. Perhaps I should mentiont that although I am new to R, I have done a few introductory courses but sometimes have a few problems with my coding. I also realise, that maybe my question was a bit to broad!
For context, I am using igraph and ddplot2.
I think I need to use an if/else statement, but I am not sure how to code it.
Here is my code so far:
plot(g,
vertex.label.color = "black",
vertex.label.cex = 0.9,
vertex.size = 0,
edge.color = 'gray28'.
layout = layout.circle(g))
I know I need to add an if/else statement in here somewhere, but not sure how. What I am trying to do is to remove all outlier nodes that only have an edge between itself and another. So essentially pairs of 2 or dyads. Any node that has 2 or more connections, ie a triad, I want to keep.
I have tried identifying communities, but as I said, I have a really large network that I am analysing and R has identified over 500 communities - most of them are communities of 2 and I want to remove them.
Hoepfully this explains what I need a bit more?
Thanks!
Ez