Simulation is not converging.
Dear Kushal,
I suggest you to see links and attached files in topics.
- Diffusion Through Multilayer Networks - Diva Portal
uu.diva-portal.org/smash/get/diva2:805149/FULLTEXT01.pdf
- Detecting the Influence of Spreading in Social Networks with Excitable ...
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4423969/
Best regards
import networkx as nx
import kushal_lib as klib
import random
import scipy.stats as stats
from collections import Counter
import numpy as np
import matplotlib.pyplot as plt
import statistics as st
#g=nx.read_edgelist("zebra_edge_list", nodetype=int); beta=0.10
g=nx.read_adjlist("SIR_Network_test", nodetype=int); beta=0.35
r=nx.degree_assortativity_coefficient(g)
random.seed(2018)
N=500
suceptible=[]
infected=[]
recovered=[]
candidates=[]
r_list=[]
candidates_hist=dict()
sigma=dict()
sigma1=dict()
for node in g.nodes():
gc=0.0; r_list=[]
for iters in range(0, N):
infected=[node]; suceptible=g.nodes(); suceptible.remove(node)
candidates=[]; recovered=[]; lc=0.0
while len(infected)!=0:
size=len(suceptible+infected+recovered)
if size!=g.number_of_nodes():
print "issue"
break
for i in infected:
for nbr in nx.neighbors(g, i):
if nbr in suceptible and nbr not in infected:
candidates.append(nbr)
recovered.extend(infected)
#print candidates
candidates_hist=dict(Counter(candidates))
candidates=list(set(candidates))
if len(candidates)==0:
suceptible=list(set(suceptible)-set(candidates))
size=len(suceptible+infected+recovered+candidates)
#print suceptible
for c, f in candidates_hist.items():
indicator=0
for cntr in range(0, f):
if random.uniform(0, 1)
Which bibliography style is used to insert refrence in manuscript of Arabian Journal for Science and Engineering?
01 February 2019 2,156 3 View
Where to find metro networks data-set (Shanghai, Seoul etc) which can be processed via networkx? People are suing them in publication without citing.
08 September 2018 1,174 0 View
I have developed a node ranking library and implemented some methods based on k-shell and some others. Kindly suggest me journals where I can publish this library.
05 June 2018 8,504 3 View
Why is the molecule's orientation with an electric field affect polarizability? Electrons are diffuse enough to be independent with respect to orientation and effect of electric field on...
03 August 2024 7,843 1 View
HI there, I've came across several articles discuss about random audit an Non random to tax evasion or compliance. Most of the articles is relating about effect of audit (random or non random)...
31 July 2024 5,309 7 View
...
31 July 2024 1,671 3 View
Dear users, I would like to simulate a zeolite structure in gromacs. I got the .cif file from IZA expanded in one direction in Materials Studio and exported a .pdb file. However, when I want to...
24 July 2024 367 4 View
I am currently conducting a mendelian randomization study, and I was attempting to use PhenoScanner to look for potential confounders associated with the selected SNPs (any SNPs significantly...
23 July 2024 5,703 0 View
Fisher studied if there is an out-of-equilibrium process that rapidly converges to some equilibrium points. He claims that Hahn process has a Lyapounof function and therefore convergent to an...
15 July 2024 1,460 4 View
I am doing a systematic review, and I am measuring risk of bias with RoB2 for RCT, and ROBINS-I for non RCT. My questions is, for single arm studies, can I use ROBINS-I? I am not sure how to...
14 July 2024 3,570 5 View
I want to simulate WRF for a 12*12 km domain size. I want to run LSM and BSM models with a 5 minutes time interval. My laptop specification is 16GB RAM and Intel i5-1235U 1.3 GHz processor. Can I...
13 July 2024 2,037 0 View
Hi Dear All I would like to simulate a mode locked semiconductor laser. Does anyone know what is the best software to do it?
06 July 2024 1,648 4 View
I attempted to find a tutorial on YouTube but couldn't locate it. Could anyone guide me on how to view simulation results for Mobile Edge Computing using the OMNET++ simulator?
06 July 2024 6,229 0 View