private void addEdge(int i, int j, int length, boolean isbothways) {
		// TODO Auto-generated method stub
		if (isbothways == true){
		
			super.addEdge(i, j);
			super.addEdge(j, i);
			lengths[i][j] = length;
			lengths[j][i] = length;
		}
		else {
		
			super.addEdge(i, j);
			lengths[i][j] = length;
		
		
		}
	}