added a way to determine a graph two color.