private void createAdjacencyMatrix(){
		adjacencyMatrix=new int[numberOfNodes][numberOfNodes];
		predecessors=new int [numberOfNodes][numberOfNodes];
		
		int index=0;
		for(int[]row:adjacencyMatrix){//initialization
			Arrays.fill(row,negativeInfinity);
			adjacencyMatrix[index][index]=0;
			index++;
		}
		
		index=0;
		for(int[]row:predecessors){//initialization
			Arrays.fill(row,-1);
			predecessors[index][index]=index;
			index++;
		}
		
		for(Node node: nodes){//translate nodes
			List <Node>successors=node.getSuccessors();
			List<Integer>arcweights=node.getArcweights();
			for(int i=0;i<successors.size();i++){
				adjacencyMatrix[node.getNodeNumber()][successors.get(i).getNodeNumber()]=arcweights.get(i);
				predecessors[node.getNodeNumber()][successors.get(i).getNodeNumber()]=node.getNodeNumber();
			}
		}
	}