It is actually a chemical reaction that happens between the yolk and the white of the egg, with sulfur and iron. You can also see this when you hard boil eggs sometimes, in a greenish grey halo around the yellow yolk. This does not mean you can't eat the eggs, but possibly that they were cooked at too high of a temperature.