aboutsummaryrefslogtreecommitdiffstats
path: root/jpa_test/cascade_creation.jl
blob: 7ce5245519818e0ebfa674b994a5d266903524fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
using Graphs

n = 100
p = .1
G = Graphs.erdos_renyi_graph(n, p)
rounds = 10

function indep_cascade(G, rounds, model, neg_num)
#neg_num represents negative values in matrix M: 0 or -1

end

cascade(G, rounds, "voter", 0)