Skip to content

Instantly share code, notes, and snippets.

@mzsima
Created May 23, 2020 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mzsima/8c6feb26b28b2b785b748ffce5bcb94d to your computer and use it in GitHub Desktop.
Save mzsima/8c6feb26b28b2b785b748ffce5bcb94d to your computer and use it in GitHub Desktop.
5x5 grid

image

snapshot

code jupyter notebook

import matplotlib.pyplot as plt
import networkx as nx

G = nx.grid_2d_graph(5, 5) 
nx.draw(G)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment