public boolean isVisited(Object element){
  return myVisitedElements.containsKey(element);
}

public boolean isVisited ( Object element ) { return myVisitedElements . containsKey ( element ) ; }
returns true if this element was already visited .
