Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created September 29, 2020 12:45
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 amankharwal/5c65f8e2e66042b85e63ff233d556604 to your computer and use it in GitHub Desktop.
Save amankharwal/5c65f8e2e66042b85e63ff233d556604 to your computer and use it in GitHub Desktop.
import networkx as nx
import matplotlib.pyplot as plt
import numpy as np
DG = nx.DiGraph()
DG.add_nodes_from("ABCD")
nx.draw(DG,with_labels=True)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment