private void calculate_distribution()
	{
		int[] occurance = new int[max_in_degree+1];
		for(int i=0;i<max_in_degree+1;i++)
		{
			occurance[i] = 0;

			//pk[i] = occurance[i]*Math.log(Math.E);
		}
		float[] pk = new float[max_in_degree+1];
		int edges = 0;
		int max = 0;
		for(Node n : graph.getNodes())
		{
			if(max < n.getTotal_degree())
				max = n.getTotal_degree();
			edges += n.getTotal_degree();
			occurance[n.getTotal_degree()]++;
		}
		for(int i=0;i<max_in_degree+1;i++)
		{
			System.out.println(i+"\t"+occurance[i]);
			//pk[i] = occurance[i]*Math.log(Math.E);
		}
	}