Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# DeepWalk example
#-------------------
g = nx.newman_watts_strogatz_graph(100, 20, 0.05)
model = DeepWalk()
model.fit(g)
#-------------------
# Splitter example
#-------------------
g = nx.newman_watts_strogatz_graph(100, 20, 0.05)
model = EgoNetSplitter(1.0)
model.fit(g)
#----------------
# Edmot example
#----------------
g = nx.newman_watts_strogatz_graph(100, 10, 0.9)
model = EdMot(3, 0.5)
model.fit(g)
#----------------
# DANMF example
#----------------
# DeepWalk example
#------------------------------------
g = nx.newman_watts_strogatz_graph(100, 20, 0.05)
model = DeepWalk()
model.fit(g)
#------------------------------------
# Splitter example
#------------------------------------
g = nx.newman_watts_strogatz_graph(100, 20, 0.05)
model = EgoNetSplitter(1.0)
model.fit(g)
#------------------------------------
# Edmot example
#------------------------------------
g = nx.newman_watts_strogatz_graph(100, 10, 0.9)
model = EdMot(3, 0.5)
model.fit(g)
#------------------------------------
# DANMF example
#------------------------------------