It\'s not appending all the adjacent nodes of the src(source).
from collections import defaultdict import heapq import sys
class Graph: def