public void modifyVariableId(String oldNodeId,String newNodeId){
  BNode node=nodes.remove(oldNodeId);
  chanceNodes.remove(oldNodeId);
  utilityNodes.remove(oldNodeId);
  actionNodes.remove(oldNodeId);
  if (node != null) {
    addNode(node);
  }
 else {
    log.warning("node " + oldNodeId + " did not exist, cannot change its identifier");
  }
}

public void modifyVariableId ( String oldNodeId , String newNodeId ) { BNode node = nodes . remove ( oldNodeId ) ; chanceNodes . remove ( oldNodeId ) ; utilityNodes . remove ( oldNodeId ) ; actionNodes . remove ( oldNodeId ) ; if ( node != null ) { addNode ( node ) ; } else { log . warning ( "node " + oldNodeId + " did not exist, cannot change its identifier" ) ; } }
modifies the node identifier in the bayesian network
