Improved Code and removed warnings (#482)

Improved Code and removed warnings
This commit is contained in:
Parth Shandilya
2018-10-19 13:28:21 +05:30
committed by GitHub
parent fedb3e70ab
commit 07451a6ca4
14 changed files with 33 additions and 12 deletions

View File

@@ -101,8 +101,8 @@ def PrimsAlgorithm(l):
return TreeEdges
# < --------- Prims Algorithm --------- >
n = int(input("Enter number of vertices: "))
e = int(input("Enter number of edges: "))
n = int(raw_input("Enter number of vertices: "))
e = int(raw_input("Enter number of edges: "))
adjlist = defaultdict(list)
for x in range(e):
l = [int(x) for x in input().split()]