// Reads a weighted, directed graph from a file and // then uses Sedgewick's code for sparse shortest path (Dijkstra's alg) import java.util.Scanner; public class SPTfile { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int v=sc.nextInt(); int e=sc.nextInt(); Graph G=new Graph(v,true); for (int i=0;i