private void updateLinks(){
			Link l = null;
			for(Node source:nodes){
				for(Node dest:nodes){
					if(source.getName().equals(dest.getName())){
						continue; // same node
					}
					
					l = getLink(source,dest);
					if(l==null){
						continue; //nodes arent neighbours
					}
					
					//if link has been taken down. (do I need to see if its up?)
					//do source and dest, so can set the flag back

					//should really check to see if this link is the one being used
					if(l.isActivityChange()){
					System.out.println("link has been changed");
						if(!l.isActive()){
							source.getRoutingTable().put(dest, Node.infinity);
							source.getVectorTable().remove(dest);
							dest.getRoutingTable().put(source, Node.infinity);
							dest.getVectorTable().remove(source);
							
						}
					}
					
					//and adjust vector info
					if(l.isCostChange()){
						source.getRoutingTable().put(dest,l.getCost());
						source.getVectorTable().remove(dest);
						dest.getRoutingTable().put(source, l.getCost());
						dest.getVectorTable().remove(source);
						
					}
				}
				
			}
			l.setActivityChange(false);
			l.setCostChange(false);
			
		}