Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
g = nx.newman_watts_strogatz_graph(200, 10, 0.02)
model = GraphWave()
model.fit(g)
embedding = model.get_embedding()
#---------------
# NNSED example
#---------------
g = nx.newman_watts_strogatz_graph(100, 10, 0.02)
model = NNSED()
model.fit(g)
embedding = model.get_embedding()
memberships = model.get_memberships()
g = nx.newman_watts_strogatz_graph(100, 10, 0.02)
model = GraphWave()
model.fit(g)
embedding = model.get_embedding()
#------------------------------------
# NNSED example
#------------------------------------
g = nx.newman_watts_strogatz_graph(100, 10, 0.02)
model = NNSED()
model.fit(g)
embedding = model.get_embedding()
memberships = model.get_memberships()