r - How do you removing a vertex from igraph without changing the plotting locations -


I have a graph graph with 100 courses, I want to remove several verticals from this article, but when I do this , I want to keep the posts of every head in the living room. Is it possible to do this?

  equal (mfrow = c (1,2)) g & lt; - erdos.renyi.game (100, 1/100) comps & lt; - Cluster G) $ subscription calendar & lt; - Rainbow (maximum (compex) +1) V (g) $ color & lt; - Colbar [Compose + 1] V (G) $ size & lt; -seq (0.05,5,0.05) plot (g, layout = layout.footterman.reindeld, vertex.label = NA) g1 and lt; -G ("1", "2", "7", "10") Plot (G1, layout = layout.footterman.reindold, Vertex.label = NA)  

The work I have thought of will color me in white colored corners and edges, which I do not want to see now, but before starting, this way, I was thinking that there was something that was a hack Was less.

You can type: g :

  Locs & lt; - By plotting the layout.fruchterman.reingold (g) plot (g, layout = public, vertex.label = NA)  

Then you can use them again when Plotty Ng g1 , deleted nodes Removing locations for:

  g1 < -g - c ("1", "2", "7", "10") plot (g1, layout = lock [-c (1, 2, 7, 10),], vertex.label = NA  

Enter image details here


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -