Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dnabanita7 committed Oct 21, 2022
1 parent 37ad608 commit cbc8b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2022-round-2/dnabanita7/nx_tutorial_script.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using networkx as nx
import networkx as nx

# Create a DiGraph
G = nx.DiGraph()
Expand All @@ -15,7 +15,7 @@
# Find shortest path b/w all pairs of nodes
paths = dict(nx.all_pairs_shortest_path(G))
for path in paths:
print(path, paths[key])
print(path, paths[path])

# Plot the graph
nx.draw(G, with_labels=True, font_weight="bold")

0 comments on commit cbc8b13

Please sign in to comment.