Removed Graphs and move prim.py to graphs (#872)

* Move prim.py from Graphs to graphs

* Removed prim.py from Graphs

* Update prim.py
This commit is contained in:
Daniel Xu 2019-06-04 21:37:05 -04:00 committed by John Law
parent 0f229e0870
commit ebe227c386

View File

@ -28,7 +28,6 @@ class vertex():
"""
Arguments:
id - input an id to identify the vertex
Attributes:
neighbors - a list of the vertices it is linked to
edges - a dict to store the edges's weight
@ -59,9 +58,7 @@ class vertex():
def prim(graph, root):
"""
Prim's Algorithm.
Return a list with the edges of a Minimum Spanning Tree
prim(graph, graph[0])
"""
A = []