public boolean addNode(int destval,ArrayList<Edge> edges){
     		    Node dest=new Node(destval);
  			boolean result=false;
  			if(edges!=null){
				java.util.Iterator<Edge> it=edges.iterator();
				while(it.hasNext()){
					boolean temp=nodes.contains(it.next());
					if(temp){
					   result=true;
					   break;
					}
				}
			    if(result){
			    	nodes.add(dest);
					adjacenyList.put(dest,edges);
			    }
			}
			else{
      		    	nodes.add(dest);
 				adjacenyList.put(dest,null);

			}
		    return result;
	}