private void add(int col,GraphicalNode graphicalNode){
  myGraphicalNodes.remove(graphicalNode);
  if (nbCols - 1 < col) {
    nbCols=col + 1;
  }
  int row=0;
  while (isOccupied(row,col)) {
    row++;
  }
  graphicalNode.row=row;
  graphicalNode.col=col;
  myGraphicalNodes.add(graphicalNode);
}

private void add ( int col , GraphicalNode graphicalNode ) { myGraphicalNodes . remove ( graphicalNode ) ; if ( nbCols - 1 < col ) { nbCols = col + 1 ; } int row = 0 ; while ( isOccupied ( row , col ) ) { row ++ ; } graphicalNode . row = row ; graphicalNode . col = col ; myGraphicalNodes . add ( graphicalNode ) ; }
ajoute la graphical node dans la map position / liste des successeurs
