Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaSharma1 committed Apr 29, 2022
1 parent ab67f0d commit db337c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/algorithms/MST Prim/MST Prim.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ nx.draw_networkx_labels(
pos= pos_nodes,
labels= labels,
font_size= 14,
font_color='blue'
font_color="blue"
)
# adding edge labels
nx.draw_networkx_edge_labels(
Expand Down Expand Up @@ -299,7 +299,7 @@ for v,d,ax,edges in zip(visited_list,distance_list,axes.ravel(), edge_list):
pos= pos_nodes,
labels= labels,
font_size= 14.5,
font_color='blue',
font_color="blue",
ax= ax
)
nx.draw_networkx_edge_labels(
Expand All @@ -326,7 +326,7 @@ NetworkX provides various [Tree](https://networkx.org/documentation/stable/refer
The following code uses NetworkX function and gives us the same output as our code.

```python
MST= nx.minimum_spanning_tree(roads, algorithm= 'prim')
MST= nx.minimum_spanning_tree(roads, algorithm= "prim")
print(sorted(MST.edges(data=True)))
```

Expand Down

0 comments on commit db337c4

Please sign in to comment.