Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# get list of all nodes from the graph
all_nodes = list(G.nodes())
random_walks = []
for n in tqdm(all_nodes):
for i in range(5):
random_walks.append(get_randomwalk(n,10))
# count of sequences
len(random_walks)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.