Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a custom .col file #1

Open
sundar19 opened this issue Jan 15, 2023 · 0 comments
Open

Creating a custom .col file #1

sundar19 opened this issue Jan 15, 2023 · 0 comments

Comments

@sundar19
Copy link

sundar19 commented Jan 15, 2023

Hello,
I was able to successfully run the code , but I need to create a grid based graph something similar to this

import networkx as nx
from matplotlib import pyplot as plt

G = nx.grid_2d_graph(10,10)

plt.figure(figsize=(12,12))
pos = {(x,y):(y,-x) for x,y in G.nodes()}
plt.figure(figsize=(12,12))
nx.draw(G, pos=pos, 
        node_color='lightgreen', 
        with_labels=True,
        node_size=600)

Can you please let me know how to generate a .col file for the same?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant