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,075 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,094 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,431 3 View
I have an experiment with 28 participants The independent variable is the times 1, 2, 5, and 10 used as the cross hairs during a task These 4 times were tested using 4 different blocks, each...
03 March 2021 9,692 2 View
Hi Community, I'm facing the issue of integration/compiling a new routing protocol in a WSN simulator. The final goal is to successfully add, configure this routing protocol in hardware devices...
01 March 2021 9,332 6 View
I have been trying to simulate heat transfer problem in Comsol 5.5 for long time but it always throw an error stating: "Failed to find a solution. Maximum number of Newton iterations...
28 February 2021 8,626 3 View
Hello researchers, Hello Castalia3.2 researchers I am a beginner with Castalia, I work on optimization of RFID systems used in wireless body networks. I simulated a WBAN with 10 nodes and one...
28 February 2021 400 1 View
Hi all, I'm doing a transient simulation of flow past a rectangular cylinder close to the free surface. As far as I'm concerned, the common practice is to discard the initial stages of the...
25 February 2021 1,348 3 View
I'm in the process of doing a meta-analysis and have encountered some problems with the RCT data. One of my outcom is muscle strength. In one study, I have three different measurements of muscle...
25 February 2021 7,603 3 View
Dear respected researchers, while performing CFD analysis in Comsol it's showing like this Error: Nonlinear solver did not converge. The maximum number of Newton iterations reached can...
24 February 2021 249 3 View
Hi Hope you are well. Can you please share your code for D2D implementation in Matlab. I want to implement D2D in Matlab based Vienna simulator and struggling to deploy D2D. Thanks
24 February 2021 9,378 3 View
I understand there are a lot of software programs that can simulate DED by going through specific modeling, simulation, and commands. For me, that was time consuming and results were not accurate....
24 February 2021 4,428 3 View
Using GDB, it is straightforward to debug and monitor a target program by setting a break-point at a specific instruction, since the instruction addresses are known. However, we have two...
24 February 2021 1,598 2 View