import java.util.*; import java.util.concurrent.TimeUnit; import java.security.*; public class GraphTask{ public static void main(String[] args) throws NoSuchAlgorithmException,NoSuchProviderException{ System.gc(); Graph foo; SecureRandom randomEdge=SecureRandom.getInstance("SHA1PRNG","SUN"); long start,end; Scanner input1=new Scanner(System.in); int vertex=input1.nextInt(); Scanner input2=new Scanner(System.in); long edge=input2.nextLong(); foo=new Graph(vertex); for(long length=0;length