Skip to content

Commit cf1cbc0

Browse files
committed
added prims algo
1 parent d82e533 commit cf1cbc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

C++/Algorithms/Graph-Algorithms/prims.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// A C++ program for Prim's Minimum
22
// Spanning Tree (MST) algorithm. The program Used
33
//the adjacency matrix
4+
//Ask the input from the usee the num of edges,
5+
//num of vertices and the graph with the value of each edge
46
#include <bits/stdc++.h>
57
using namespace std;
68
struct compare{

0 commit comments

Comments
 (0)