Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# Edmot example
#----------------
g = nx.newman_watts_strogatz_graph(100, 10, 0.9)
model = EdMot(3, 0.5)
model.fit(g)
#----------------
# DANMF example
#----------------
g = nx.newman_watts_strogatz_graph(100, 10, 0.02)
model = DANMF()
model.fit(g)
#----------------
# M-NMF example
#----------------
g = nx.newman_watts_strogatz_graph(100, 10, 0.02)
model = MNMF()
model.fit(g)
#----------------------------
# Label Propagation example
#----------------------------
# Edmot example
#------------------------------------
g = nx.newman_watts_strogatz_graph(100, 10, 0.9)
model = EdMot(3, 0.5)
model.fit(g)
#------------------------------------
# DANMF example
#------------------------------------
g = nx.newman_watts_strogatz_graph(100, 10, 0.02)
model = DANMF()
model.fit(g)
#------------------------------------
# M-NMF example
#------------------------------------
g = nx.newman_watts_strogatz_graph(100, 10, 0.02)
model = MNMF()
model.fit(g)
#------------------------------------
# Label Propagation example
#------------------------------------