How to calculate/visualize network robustness/vulnerability?
0
0
Entering edit mode
24 months ago

Hi all!

I am trying to differentiate the robustness between Barabasi-Albert (scale free) and Erdos-Renyi (Rnadom graphs). However, The following code fails and I dont know why. Could anyone help me please?

Thank you in advanced.

library(brainGraph)
library(igraph)
ba =sample_pa(10000, directed=F)
er= erdos.renyi.game( length(V(ba)), length(E(ba)), 'gnm'  )
er.b= robustness(er, measure = "btwn.cent")
er.d= robustness(er, measure = "degree")
er.r= robustness(er, measure = "random")
ba.b= robustness(ba, measure = "btwn.cent")
ba.d= robustness(ba, measure = "degree")
ba.r= robustness(ba, measure = "random")
plot(ba.b$comp.size); points(er.b$comp.size, col=2)
Erdos-Renyi Barabasi-Albert igraph • 290 views
ADD COMMENT

Login before adding your answer.

Traffic: 2068 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6