private void createEdge(int n){
		edge = new boolean[n][n];
		weight = new double[n][n];
		for(int i=0;i<n;i++){
			for(int j=i+1;j<n;j++){
				if(Math.random()<=p){
					edge[i][j]=edge[j][i]=true;
					weight[i][j]=weight[j][i]=Math.random();
				}else{
					edge[i][j]=edge[j][i]=false;
					weight[i][j]=weight[j][i]=0;
				}
			}
		}
		for(int i=0;i<n;i++){
			edge[i][i]=false;
			weight[i][i]=0;
		}
	}