Skip to content

Instantly share code, notes, and snippets.

@rudiejd
Last active July 20, 2020 03:54
Show Gist options
  • Save rudiejd/13f18afda2eb8225059792e78a963027 to your computer and use it in GitHub Desktop.
Save rudiejd/13f18afda2eb8225059792e78a963027 to your computer and use it in GitHub Desktop.
from rec import make_graph
import networkx as nx
from matplotlib import pyplot as plt
graph_dict = make_graph('fiona apple', 3, 3)
walk_graph = nx.DiGraph(graph_dict)
nx.draw_planar(walk_graph, with_labels=True)
plt.title('Random Walk through Spotify')
plt.draw()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment