Skip to content

Commit ebe227c

Browse files
NielXupoyea
authored andcommitted
Removed Graphs and move prim.py to graphs (TheAlgorithms#872)
* Move prim.py from Graphs to graphs * Removed prim.py from Graphs * Update prim.py
1 parent 0f229e0 commit ebe227c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Graphs/prim.py renamed to graphs/prim.py

-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def __init__(self, id):
2828
"""
2929
Arguments:
3030
id - input an id to identify the vertex
31-
3231
Attributes:
3332
neighbors - a list of the vertices it is linked to
3433
edges - a dict to store the edges's weight
@@ -59,9 +58,7 @@ def addEdge(self, vertex, weight):
5958
def prim(graph, root):
6059
"""
6160
Prim's Algorithm.
62-
6361
Return a list with the edges of a Minimum Spanning Tree
64-
6562
prim(graph, graph[0])
6663
"""
6764
A = []

0 commit comments

Comments
 (0)