Re: [graph-tool] how to improve similarity for Ising model and SIS model

2020-05-12 Thread gege
k. Is it from the simulation or based on a unique property of the network? sincerely, Gege Hou -- Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/ ___ graph-tool mailing list graph-tool@skewed.de

Re: [graph-tool] how to improve similarity for Ising model and SIS model

2020-03-24 Thread gege
for s in ss] rstate = gt.EpidemicsBlockState(g, s=ss, beta = None, r=1e-6, global_beta=.2, state_args=dict(B=1), nested=False) " Why couldn't I use an empty graph as a starting point? Sincerely, Gege Hou -- Sent from: http://main-discussion-li

Re: [graph-tool] how to improve similarity for Ising model and SIS model

2020-03-23 Thread gege
state().copy()] si_state.iterate_async() s.append(si_state.get_state().copy()) # Each time series should be represented as a single vector-valued # vertex property map with the states for each note at each time. s = gt.group_vector_property(s) ss.append(s) " sincerely

[graph-tool] how to improve similarity for Ising model and SIS model

2020-03-17 Thread gege
uot;, gt.similarity(g, gm, g.new_ep("double", 1), gm.ep.eprob)) print("Inversed temperature: %g ± %g" % (mean(betas), std(betas))) Moreover, I also wonder how to do a nested version for the same network. Please let me know if you need more information on the question. ot