public Node add(Node n){
  nodeMap.put(n.getCoordinate(),n);
  return n;
}

public Node add ( Node n ) { nodeMap . put ( n . getCoordinate ( ) , n ) ; return n ; }
adds a node to the map , replacing any that is already at that location .
