Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Graphs/prim.py → graphs/prim.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def __init__(self, id):
"""
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
Expand Down Expand Up @@ -59,9 +58,7 @@ def addEdge(self, vertex, weight):
def prim(graph, root):
"""
Prim's Algorithm.

Return a list with the edges of a Minimum Spanning Tree

prim(graph, graph[0])
"""
A = []
Expand Down