Skip to content

Commit ebe227c

Browse files
NielXupoyea
authored andcommitted
Removed Graphs and move prim.py to graphs (#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

Lines changed: 0 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy