Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
model.fit(g)
model.get_embedding()
#-----------------------------------
# TENE example
#-----------------------------------
g = nx.newman_watts_strogatz_graph(100, 20, 0.05)
t = np.random.uniform(0,1,(100,2000))
tp = nx.newman_watts_strogatz_graph(100, 20, 0.05)
tp = nx.adjacency_matrix(tp)
model = TENE()
model.fit(g, t)
model.get_embedding()
model.fit(g, tp)
model.get_embedding()
#-----------------------------------
# BANE example
#-----------------------------------
g = nx.newman_watts_strogatz_graph(100, 20, 0.05)
x = np.random.uniform(0,1,(100,2000))
p = nx.newman_watts_strogatz_graph(100, 20, 0.05)
model.fit(g)
model.get_embedding()
#---------------
# TENE example
#---------------
g = nx.newman_watts_strogatz_graph(100, 20, 0.05)
t = np.random.uniform(0,1,(100,2000))
tp = nx.newman_watts_strogatz_graph(100, 20, 0.05)
tp = nx.adjacency_matrix(tp)
model = TENE()
model.fit(g, t)
model.get_embedding()
model.fit(g, tp)
model.get_embedding()
#---------------
# BANE example
#---------------
g = nx.newman_watts_strogatz_graph(100, 20, 0.05)
x = np.random.uniform(0,1,(100,2000))