Color differently connected vertices

Color vertices so that connected vertices have different colors