public boolean addNode(Lop node){
  if (nodes.contains(node))   return false;
  nodes.add(node);
  return true;
}

public boolean addNode ( Lop node ) { if ( nodes . contains ( node ) ) return false ; nodes . add ( node ) ; return true ; }
method to add a node to the dag .
