Research Article
Potential Consequence of Interconnected Intervention against Systemic Risk (COVID-19) via a Model-Driven Network-Agent Dynamic
Table 2
Code example of small-world network.
| [In] # import modules | import networkx | import matplotlib.pyplot as plt |
| [In] # create object | G = networkx.watts_strogatz_graph(n = 10, p = 4, = 0.2) | pos = networkx.circular_layout() |
| [In] # illustrate graph | networkx.draw_networkx (G, pos, node_color = 'k', node_size = 500) |
|
|